Strongly Typed Resources Causing Problems?
Question
In the middle of some refactoring and I've moved a resources file from one project to another. I think I clicked a warning telling me to Strongly type the resource file at one point and now I'm getting:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "MyProject.Common.ResourceManagement.resources" was correctly embedded or linked into assembly "MyProject.Common" at compile time, or that all the satellite assemblies required are loadable and fully signed.
Which is from a MissingManifestResourceException I beleive.
http://msdn.microsoft.com/en-us/library/system.resources.missingmanifestresourceexception.aspx
I've looked up a couple of the solutions:
- http://weblogs.asp.net/ngur/archive/2003/12/28/46219.aspx
- http://jameswho.blogspot.com/2004/06/missingmanifestresourceexception.html
- http://support.microsoft.com/kb/318603
But none of them seem relevant to my situation.
Any ideas? This has been bugging me for a few days now.
Am I doing something stupid?
Solution
Are you sure these resource files are embedded into the assembly? Maybe you've lost the "Embedded Resource" settings as you moved the files. Further, the resource names may have changed. The fully qualified name of a resource is AssemblyName + physical subfolder(s) + resource name
OTHER TIPS
Can you export them to a text file from the original project and import them into the new project? If it's just key/value pairs it should be simple.