Resource edit warning for Blazor WASM localization resources
This issue has a corresponding ticket on Developer Community. Please vote and comment there to make sure your voice is heard.
[severity:It bothers me. A fix would be nice]
I have a Blazor WASM project targeting .NET 5 in VS 2019 16.9.0. It uses IStringLocalizer to display localized text. Unfortunately, whenever I edit any of my culture-specific .resx files I get the following warning:
You are trying to edit a resource file that is a part of another project item (such as a form or a control). Editing this item could corrupt the project item, and you will have to recover it by hand. In addition, changes made to this resource file may be lost if further changes are made to the project item.
Do you really want to edit this file?
For example, on the sample Counter.razor page, I've added a Counter.es.resx file with Spanish translations. This file isn't directly referenced by my .csproj; it's implicitly picked up by my SDK project. Its Build Action is Embedded Resource, and there is no Custom Tool assigned to it in the Properties window.
This warning is annoying for everyone on my team when we have to edit localized resources. Is there a way to suppress this inappropriate warning since these .resx files are not generating code or corrupting anything? Or is there some Custom Tool I can use in the Properties window to help VS know not to show that warning?
Still issue with Version 17.10.0 Preview 2.0