Interface IFileWriter
Writes a PlannedFile to disk, creating directories as needed. Each distribution form (CLI, MSBuild, Source Generator) provides its own adapter that integrates with its own reporting/progress pipeline.
public interface IFileWriter
Methods
WriteAsync(PlannedFile, CancellationToken)
Writes the planned file to disk, creating directories as necessary.
Task WriteAsync(PlannedFile file, CancellationToken cancellationToken = default)
Parameters
filePlannedFileThe planned file to write.
cancellationTokenCancellationTokenA cancellation token.
Returns
- Task
A task representing the asynchronous write operation.