-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Cake's IFileSystem for read/write operations instead of System.IO…
….File (#118) * Use Cake's IFileSystem for read/write operations instead of System.IO.File In all file aliases, use Cake's IFileSystem abstraction instead of using System.IO.File. This enables testing of tasks that use the file aliases by mocking IFileSystem. The FileTouch() alias continues to use System.IO.File since there is no API in IFileSystem that allows setting the last write time. * Remove unnecessary nullable annotation Co-authored-by: C. Augusto Proiete <[email protected]> * Convert paths to absolute paths before opening file stream Co-authored-by: C. Augusto Proiete <[email protected]> --------- Co-authored-by: C. Augusto Proiete <[email protected]>
- Loading branch information
1 parent
7c43533
commit ead9d86
Showing
1 changed file
with
61 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters