Issue Description
dotnet build does not detect deleted EmbeddedResources.
Steps to Reproduce
- Download example project from https://github.com/innominateAtWork/NoRebuildWhenDeleteEmbeddedResource
dotnet run it outputs all files included as EmbeddedResources in MyApp.csproj and their content
- Change the text in File1.txt
dotnet run the project rebuilds and includes the updated text
- Delete File1.txt
dotnet run the project does NOT rebuild the run looks identical to the prior run
Expected 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