I am working on an ASP.NET MVC2 project for which I configured localization as follows ...
I have a separate resource assembly containing all my resx files. Settings for each resx file ...
Build Action = Embedded Resource
Copy to Output Directory = Do not copy
Custom Tool = PublicResXFileCodeGenerator
Custom Tool Namespace = Resources
I have a tool that exports rows from a database to resx files and calls the resgen.exe tool to recreate the designer.cs file.
All this worked fine even when I changed the language settings of my browser and refreshed the page. He will pick up the correct lines.
This was in a temporary working folder (I use subversion). Now I got to work in a regular folder and get a rather strange error.
Compiler Error Message: CS0433: type 'Resources.XXXX' exists in both "C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Temporary ASP.NET Files \ root \ 6c657d01 \ aaca70ae \ assembly \ DL3 \ a36dac65 \ 78c87110_3724cb01 \ Resources.DLL "as well as" C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Temporary ASP.NET Files \ root \ 6c657d01 \ aaca70ae \ App_GlobalResources.g6fehiio.dll '
I deleted all my asp.net temporary files, re-launched the web application and restored both of the above builds. The strangest thing is that all this worked before I went to my usual working folder.
So, can anyone tell me what generates this assembly App_GlobalResources, which I do not need or do not need, because all my resources are contained in the resource assembly that I created.
PS - The reason I went with Resource.dll was to get around the problem I was working with creating resources using my database extraction tool. (see here )
PPS - I am using VS2010
source share