N
NvrBst
I need my resource file in a generic namespace to be accessable by a
shared class. I change the Resources.resx File Properties -> Custom
Tool Namespace: MyResources. This field is under the "Custom Tool:
ResXFileCodeGenerator" property.
This works fine. I can now access the resource like so
"MyResources.MyBitmapFile" etc. However, when looking into the
"Resources.Designer.cs" file I see the following line:
new
global::System.Resources.ResourceManager("MyProj.Properties.Resources",
typeof(Resources).Assembly);
Should "MyProj.Properties.Resources" not be "MyResources.Resources"?
The Program seems to work both ways but whenever I change it to
"MyResources.Resources" it seems to randomly switch back to the
"MyProj.Properties..." (namily when I add new resources to the file,
among other actions). Is this something I should bother to keep
changing? Or is the "Custom Tool Namespace" not suppose to be used
like this? Maybe suggestions on the proper way to do it?
Thanks
NB
shared class. I change the Resources.resx File Properties -> Custom
Tool Namespace: MyResources. This field is under the "Custom Tool:
ResXFileCodeGenerator" property.
This works fine. I can now access the resource like so
"MyResources.MyBitmapFile" etc. However, when looking into the
"Resources.Designer.cs" file I see the following line:
new
global::System.Resources.ResourceManager("MyProj.Properties.Resources",
typeof(Resources).Assembly);
Should "MyProj.Properties.Resources" not be "MyResources.Resources"?
The Program seems to work both ways but whenever I change it to
"MyResources.Resources" it seems to randomly switch back to the
"MyProj.Properties..." (namily when I add new resources to the file,
among other actions). Is this something I should bother to keep
changing? Or is the "Custom Tool Namespace" not suppose to be used
like this? Maybe suggestions on the proper way to do it?
Thanks
NB