dotnet / dotnet/project-system
Resource Editor doesn't handle file renames, deletions
Open
Feature-Resource-Designer
Feature-Resource-Explorer
Triage-Approved
- Dominant language
- C#
- Stars
- 1k
- Forks
- 415
- PR merge metrics
- No merged PRs in 30d
Description
Based on https://developercommunity.visualstudio.com/content/problem/69010/vs2017-removing-resource-file.html.
Basically, if you rename or delete a file included in a .resx file through the Solution Explorer, the Resource Editor doesn't see the rename/delete and is left with a dangling reference to a non-existent file. Later, when making a further modification to the .resx, VS deletes and attempts to regenerate the Resources.Designer.cs file and fails because of that dangling reference.
We should update the Resource Editor to listen for file renames and deletes, and update the .resx accordingly.
Contributor guide
Assessment
This issue has not been assessed yet.