My UI code used to be in only one project, so my localization files (*.resx) are in a single project.
Now I would like to use these strings (Properties_Resources.ResourceManager.GetString
) in another project of the same C# solution.
I tried this answer but I get The name 'Properties_Resources' does not exist in the current context
. (I guess that question is only for binary resources like images, not localization)
I tried to put my resources into a separate empty project with Class output, and added a reference to it from all other projects, but same error.
In an old forum discussion someone dumped links to Creating Resource Assemblies and Retrieving Resources with the ResourceManager Class but it is very low on explanations, and I find it hard to believe that reflection is the recommended way to go.