dotnet / dotnet/sdk

dotnet-watch can't handle file renames performed via File.Move

Open
#43,320 0 comments 0 reactions 1 assignee Claimed by @tmat View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.