title: Visual Studio 2010 doesn't generate Resource (Resx) designer code if file is localized
body: <p>I've just come across the weirdest behavior in Visual Studio 2010 while working with Resx resource files and I just can't wrap my head around it.</p>
  
  <p>The problem is as follows: Visual Studio will not generate the <code>designer.cs</code> file for a resource file with a localized name (such as <code>resource.fr.resx</code>), but it works fine for other files with simple names (such as <code>resource.resx</code>).</p>
  
  <p>Here's a snapshot of my visual studio project setup:</p>
  
  <p><img src="https://i.stack.imgur.com/AVC38.png" alt="enter image description here"></p>
  
  <p>As you can see I just did a simple test with 3 resource files:</p>
  
  <ul>
  <li>test.resx </li>
  <li>test2.resx</li>
  <li>test.fr.resx</li>
  </ul>
  
  <p>The <code>designer.cs</code> files for <code>test.resx</code> and <code>test2.resx</code> are generated just fine. However <code>test.fr.designer.cs</code> is created but always blank, no matter what I do. </p>
  
  <p><strong>I have double and triple checked:</strong> the custom tool property is properly set for the localized file. All properties are exactly the same across all files (I'm using <code>PublicResxFileCodeGenerator</code>, but I get the same behavior if I set access modifier to internal and use <code>ResxFileCodeGenerator</code>).</p>
  
  <p>Note: I've noticed that when created a resource file, Visual Studio normally defaults the access modifier to "Internal". However, when creating a localized resource file (<code>resource.fr.resx</code>) it defaults to "No code generation". Just found that interesting to note since it proves that visual Studio is treating the localized file differently for some reason.</p>
  
  <p>--> Is there something I'm missing here? I would appreciate if anybody has some insight on the subject, this is driving me crazy.</p>