title: VSConstants in Visual Studio 2012
body: <p>I am moving a project from Visual Studio 2010 to Visual Studio 2012 and am getting compiler errors about <code>VSConstants</code>:</p>
  
  <pre><code>Error   16  The name 'VSConstants' does not exist in the current context
  </code></pre>
  
  <p>I have ensured that Microsoft.VisualStudio.Shell is referenced and have also tried referencing Microsoft.VisualStudio.Shell.11.0 and Microsoft.VisualStudio.Shell.10.0. I have checked that the .cs file is using the assembly as well (<code>using Microsoft.VisualStudio.Shell</code>).</p>
  
  <p>Any ideas on how to get <code>VSConstants</code> in Visual Studio 2012? If not, is there an equivalent in Visual Studio 2012 that I could use? I'm currently using <code>VSConstants.E_FAIL</code> and <code>VSConstants.E_NOINTERFACE</code>.</p>
  
  <p>Thanks!</p>