Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8804881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:43:19+00:00 2026-06-14T01:43:19+00:00

I am moving a project from Visual Studio 2010 to Visual Studio 2012 and

  • 0

I am moving a project from Visual Studio 2010 to Visual Studio 2012 and am getting compiler errors about VSConstants:

Error   16  The name 'VSConstants' does not exist in the current context

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 (using Microsoft.VisualStudio.Shell).

Any ideas on how to get VSConstants in Visual Studio 2012? If not, is there an equivalent in Visual Studio 2012 that I could use? I’m currently using VSConstants.E_FAIL and VSConstants.E_NOINTERFACE.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:43:20+00:00Added an answer on June 14, 2026 at 1:43 am

    Make sure you have the VS 2012 SDK installed from http://www.microsoft.com/en-au/download/details.aspx?id=30668

    You need to add C:\Program Files (x86)\Microsoft Visual Studio 11.0\VSSDK\VisualStudioIntegration\Common\Assemblies\v4.0\Microsoft.VisualStudio.Shell.11.0.dll as a reference to the project

    To use that assembly you will have to target the 4.5 framework.

    Alternatively, The project I just upgraded … all I needed to do was to change the framework version to 4.5 and delete the project references it couldn’t find. I had anticipated that ReSharper would point me at the new ones but it just built anyway. Note, this was after I installed the SDK.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem with a project in Visual Studio 2010 after moving to
I'm just in the process of moving from Visual Studio 2008 to Visual Studio
We are moving from hand-managed Visual Studio projects to cross platform cmake. We used
I am interested in moving a number of my projects from Visual Studio and
I have a visual studio 2010 project done in VB.net and i have around
Microsoft is moving away from the Visual Studio built-in MSI setup projects. WiX seems
We tried moving a TFS Project Collection from one TFS 2010 server to another.
I'm using Windows Vista and Visual Studio 2010. Create a .Net 4 Windows Forms
While moving some files away from Visual SourceSafe 2005 (into git) I discovered a
I am currently moving an ASP.NET web-project from an IIS 6 to a IIS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.