Skip to content

[Bug]: Deleted embedded resources dont cause rebuild #10644

@innominateAtWork

Description

@innominateAtWork

Issue Description

dotnet build does not detect deleted EmbeddedResources.

Steps to Reproduce

  1. Download example project from https://github.com/innominateAtWork/NoRebuildWhenDeleteEmbeddedResource
  2. dotnet run it outputs all files included as EmbeddedResources in MyApp.csproj and their content
  3. Change the text in File1.txt
  4. dotnet run the project rebuilds and includes the updated text
  5. Delete File1.txt
  6. 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

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions