dotnet-watch can't handle file renames performed via File.Move
Open
Area-Watch
untriaged
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
Tracks disabled test case `RenameSourceFile(useMove: true)`.
dotnet-watch file watcher ignores the addition of the new file because it thinks it was added before the build started.
This is because `File.Move` doesn't update last creation/write time of the moved file.
Maybe we should issue a new `ChangeKind` `Rename` from `WatcherRenameHandler` instead of Add/Delete?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.