I have some strings in various resx
files which I would like to be able to update after publishing the application.
To do this, I changed the resx
files' Build Action property to Content, which adds the files to a folder in the output directory and allows for updating the resources.
However, when I try debugging the project in Visual Stuidio after making this change, I get this error when the project tries to retrieve a resource string:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "MyProject.Resources.NavbarLabels.NavbarLabels.resources" was correctly embedded or linked into assembly "MyProject" at compile time, or that all the satellite assemblies required are loadable and fully signed.
This is quite inconvenient, as I will need to change each resources file's Build Action when I need to publish or debug.
What is the best way around this? Should i be using some other method to allow for updating resources after publishing?