title: CLR/CLI linker fails with error LNK2022 - Custom attributes are not consistent
body: <p><strong>Environment:</strong>
  <code>Visual Studio 10, CLR/CLI Class Library</code> project, built with <code>Platform Toolset v100</code>, targeting framework version <code>v3.5</code>.</p>
  
  <p>I am aware that this question was already asked here, but I did not find an answer that solved the problem for my case, so bringing this up again.</p>
  
  <p>While building a <code>CLR/CLI Class Library (DLL)</code> project the linker is failing with the following errors:</p>
  
  <pre><code>MSVCMRT.lib(managdeh.obj) : error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c0000f7).
  MSVCMRT.lib(managdeh.obj) : error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c0000fb).
  MSVCMRT.lib(msilexit.obj) : error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c000128).
  MSVCMRT.lib(msilexit.obj) : error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c00012c).
  MSVCMRT.lib(puremsilcode.obj) : error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c0000ee).
  MSVCMRT.lib(puremsilcode.obj) : error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c0000f1).
  LINK : fatal error LNK1255: link failed because of metadata errors
  </code></pre>