I have some dlls in my project that only contain many .resx files as embedded resources. In each project the .resx files are put into different folders. The property "Custom Tool Name Space" of all is set to the namespace of each project.
When I try to use ResourceManager
to get a string I get an error that for example "MyTemplate.resources" is not found but I only have "MyTemplate.resx" in the dll.
How can I access my resources?
new ResourceManager(typeof(MyTemplate.resx)).GetString("FirstNameTooltip");
As I said in comment below the Resources are dynamicly changed. and i have no direct access to its properties.
You need to load the assembly first:
(There are a couple of issues you could have with this. Read about dynamic assembly loading specificly.)
Then create the resource manager:
Then load the string: