-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Deleted embedded resources dont cause rebuild #10644
Comments
Similarly adding a File3.txt also does not cause rebuild |
Team triage: @JaynieBai! Could you please try to repro and collect binlogs for this issue? |
@AR-May I repro this issue locally. But when delete the File1.txt and save the other files in the project folder. The date modified is updated. It will rebuild the project and output different result. |
Can't repro this one |
Thank you @JaynieBai! |
It looks like copying a file does not trigger a rebuild, but creating a new file does.
|
Ah that makes sense and we should fix it by bringing back #6780. |
Issue Description
dotnet build
does not detect deleted EmbeddedResources.Steps to Reproduce
dotnet run
it outputs all files included as EmbeddedResources in MyApp.csproj and their contentdotnet run
the project rebuilds and includes the updated textdotnet run
the project does NOT rebuild the run looks identical to the prior runExpected Behavior
MyApp rebuilds because an EmbeddedResources has been deleted.
Actual Behavior
MyApp does NOT rebuild.
Analysis
No response
Versions & Configurations
MSBuild version 17.11.3+0c8610977 for .NET
17.11.3.35201
The text was updated successfully, but these errors were encountered: