title: Error MSB6006: "mt.exe" exited with code 31
body: <p>I ran into this problem today while migrating a VS2008 solution to VS2010.  The problem occurred in either of the following scenarios:</p>
  
  <ol>
  <li>Rebuild Solution</li>
  <li>Clean followed by Build Solution</li>
  </ol>
  
  <p>If I did a second Build after either of these, the problem did not show up.  Using Google, all I really came up with was year-old blogs from Microsoft saying they are unable to reproduce the problem, or that it is fixed in a future release.</p>
  
  <p>The best thing I found was here: <a href="http://www.mikazo.com/2012/03/solve-mtexe-errors-in-visual-studio.html">Mikazo Tech Blog: Solve MT.exe Errors in Visual Studio 2010</a></p>
  
  <p>In the above article it said that the problem is related to Manifest generation, and that the solution is to turn off Manifests in settings under <strong>Linker-->Manifest</strong>.  I don't need Manifests for this project, but I still wasn't satisfied.</p>
  
  <p>I have solved this, and am simply going to answer my own question, because I haven't found this specific error (code 31) on StackOverflow.</p>