Files

Frends.Files.ReadBytes / 1.3.0

Summary

Reads a file as raw bytes, with no character decoding, so binary content survives intact.

Typical use — images, archives and encrypted files, where reading as text would corrupt the content

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0
1.3.02026-10-09
Changed
  • The Task now targets .NET 8.
  • By default the Task throws an error when reading fails. Set the new ThrowErrorOnFailure option to false to receive a failed result instead.
Added
  • New options ThrowErrorOnFailure and ErrorMessageOnFailure for controlling error handling.
  • Result now contains Success and Error properties.
1.2.02026-05-08
Fixed
  • Fix documentation of result
1.1.02025-03-19
Changed
  • Update packages: Microsoft.Extensions.FileSystemGlobbing 7.0.0 -> 9.0.3 System.ComponentModel.Annotations 4.7.0 -> 5.0.0 System.DirectoryServices 7.0.0 -> 8.0.0 coverlet.collector 3.1.0 -> 6.0.4 Microsoft.NET.Test.Sdk 16.6.1 -> 17.13.0 MSTest.TestAdapter 2.2.7 -> 3.8.3 MSTest.TestFramework 2.2.8 -> 3.8.3 nunit 3.12.0 -> 4.3.2 NUnit3TestAdapter 3.17.0 -> 5.0.0
1.0.02023-04-20
Added
  • Initial implementation
An unhandled error has occurred. Reload 🗙