C
Clive Dixon
I have two forms in an assembly that I am localising. Both source files lie
in a project subfolder Forms\Addresses (mirrored in the disk directory
structure). When I localise form A and compile, the resource (output in the
obj directory, and in the compiled assembly as confirmed using ildasm) is
called "Namespace.A.resources", and the resource is correctly loaded at
runtime by the resource manager created by the designer generated code:
new System.Resources.ResourceManager(typeof(A)).
However form B is compiled into a resource
"Namespace.Forms.Addresses.B.resources", and not surprisingly the resource
is not found at runtime.
I can see nothing whatsoever in the .cs, .resx or .csproj files or project
settings which could account for the differing compilation behaviour for
these two resources which both lie in the same project and disk folder. Has
anybody come across this problem and found the solution?
in a project subfolder Forms\Addresses (mirrored in the disk directory
structure). When I localise form A and compile, the resource (output in the
obj directory, and in the compiled assembly as confirmed using ildasm) is
called "Namespace.A.resources", and the resource is correctly loaded at
runtime by the resource manager created by the designer generated code:
new System.Resources.ResourceManager(typeof(A)).
However form B is compiled into a resource
"Namespace.Forms.Addresses.B.resources", and not surprisingly the resource
is not found at runtime.
I can see nothing whatsoever in the .cs, .resx or .csproj files or project
settings which could account for the differing compilation behaviour for
these two resources which both lie in the same project and disk folder. Has
anybody come across this problem and found the solution?