title: How can I fix my invalid resx file input?
body: <p>I added several existing files (from a VS 2008 Windows CE project) to a VS 2008 Winforms project. For many (but not all) of the forms, I get this err re: the *.resx files:</p>
  
  <p><em>Invalid Resx file. ResX input is not valid. Cannot find valid "resheader" tags for the ResX reader and writer type names.</em></p>
  
  <p>The *.resx files that are fine display like so when I 2-click them in the Solution Explorer:</p>
  
  <p><img src="https://i.stack.imgur.com/oJoyc.png" alt="enter image description here"></p>
  
  <p>...whereas those that won't compile with the err msg above display one thing if I 2-click the *.resx file in the Solution Explorer, to wit:</p>
  
  <p><img src="https://i.stack.imgur.com/DGQ27.png" alt="enter image description here"></p>
  
  <p>...but the error-invoking *.resx files show their code if I 2-click the line in the Error List, like so:    </p>
  
  <pre><code>. . .
    &lt;resheader name="resmimetype"&gt;
      &lt;value&gt;text/microsoft-resx&lt;/value&gt;
    &lt;/resheader&gt;
    . . .
  </code></pre>
  
  <p>Note: The solution here <a href="https://stackoverflow.com/questions/8390447/c-sharp-resx-file-error">C# resx file error</a>:  doesn't seem to apply to my situation, as the out-of-kilter / off-the-rails files already have this format:  </p>
  
  <pre><code>&lt;resheader name="resmimetype"&gt;
      &lt;value&gt;text/microsoft-resx&lt;/value&gt;
    &lt;/resheader&gt;
  </code></pre>
  
  <p>Why are some resx files fine while the others prevent compilation? How can I massage/tweak them to get past the compile gauntlet?</p>