C# Resource files in solution sub-folder causing MissingManifestResourceException -


I have created a series of resources (resx) to keep language specific string data. After various tutorials, I have placed the base resource file (MySourceScore.Rex) in the root folder of the solution and other later processing files, for example (MyResources.en-AU.resx) in solution together. Saying that all this works fine, till I make a folder in the solution explorer, for example, which is called "culture" and then move one or all of the resource files into that folder after doing this I'm getting a scary resource resource as soon as I get them back to the solution folder in the explorer's root folder. No problem.

Can anyone tell me what is happening here? How can I move these resource files away from the root solution?

Regards

When you say that you have moved the resource files Do you mean that you have manually transferred them to the file system? If that's the case, obviously the build tool will not be able to find the file, because they are still referenced from their "old" locations Try removing the resource file from the project and then "add existing items" and return it Add. Do not forget to return everything before you try it, of course ...

EDIT: When you move a file into a folder, then the name of that folder is named For example, if you have a resource file named Resource 1, and you have accessed it by Resource1.String1, after moving it to "folder", this folder will be created. Resource1.String1


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -