Files

Frends.Files.Write / 1.6.0

Summary

Writes text content to a file, creating it or replacing whatever was there, and reports the resulting size.

Typical use — landing a generated document on disk; the bytes Task is the one for binary content

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0
1.6.02026-10-14
Changed
  • Upgraded the Task to target .NET 8.
  • The Task now accepts a cancellation token and returns Success and Error in the result.
  • Added ThrowErrorOnFailure and ErrorMessageOnFailure options to control how failures are reported.
1.5.02026-06-23
Fixed
  • Fix stale reads on network storage writes.
1.4.02025-11-04
Fixed
  • Returning correct file size
1.3.02025-06-05
Fixed
  • Resolve issue with an unsupported library in .net 6.
Changed
  • Downgrade package System.Text.Encoding.CodePages from 9.0.3 to 8.0.0
  • Remove unused package Microsoft.Extensions.FileSystemGlobbing
1.2.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 System.Text.Encoding.CodePages 8.0.0 -> 9.0.3 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.1.02024-10-14
Fixed
  • Renamed ANSI encoding to Default.
Added
  • Added result properties SizeInKiloBytes and SizeInBytes.
1.0.12024-02-27
Added
  • Windows-1252 added to "Encoding" options.
1.0.02023-02-15
Added
  • Initial implementation
An unhandled error has occurred. Reload 🗙