title: Why am I getting App_GlobalResources assembly generated? (Error = CS0433)
body: <p>I'm working on a ASP.NET MVC2 project, for which I have configured the localisation as follows ...
  <hr />
  I have a separate Resources assembly, containing all my resx files. The settings for each resx file are...</p>
  
  <pre>
  Build Action             = Embedded Resource
  Copy to Output Directory = Do not copy
  Custom Tool              = PublicResXFileCodeGenerator
  Custom Tool Namespace    = Resources
  </pre>
  
  <p>I have a tool which exports the strings from a database into the resx files and calls the resgen.exe tool to recreate the designer.cs file.</p>
  
  <hr />
  
  <p>This all worked great, even when I changed the language settings of my browser and refreshed the page. It would pick up the correct strings.</p>
  
  <p>That was in a temporary working folder (I use subversion). I've now moved to working in my normal folder and am getting a rather odd error.</p>
  
  <blockquote>
    <p>Compiler Error Message: CS0433: The
    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'
    and
    'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary
    ASP.NET
    Files\root\6c657d01\aaca70ae\App_GlobalResources.g6fehiio.dll'</p>
  </blockquote>
  
  <p>I have deleted all of my temporary asp.net files, re-run the web app and it regenerates both of the above mentioned assemblies. The really odd thing is that this all worked before I moved to my usual working folder.</p>
  
  <p>So, can anyone tell me what is generating this App_GlobalResources assembly, which I don't need or want, because all my resources are contained in the Resources assembly I've created.</p>
  
  <p>PS - The reason I went with Resources.dll was to get around a problem I was having with generating the resources using my database extract tool. (see <a href="https://stackoverflow.com/questions/3230585/run-custom-tool-for-resx-files-in-mvc2-project-from-an-external-application-sc">here</a>)</p>
  
  <p>PPS - I am using VS2010</p>