9

After installing Debugger Canvas and restarting Visual Studio, I get this error for each project when opening a solution:

Project <Name> could not be opened because the Microsoft Visual C# 2010 compiler could not be created. Please re-install Visual Studio.

I tried all of the answers from this question with no luck: Microsoft visual C# 2008 compiler could not be created. Please re-install Visual Studio

So far I have:

  • Tried the /resetsettings argument
  • Tried the /ResetSkipPkgs argument
  • Tried removing the whole key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio

Any other ideas other than reinstalling VS and/or SP1?

VS Version: 10.0.40219.1 SP1Rel

Thanks!

1

4 Answers 4

25
  1. Open VS command prompt
  2. Run the following command

    devenv /resetsettings

  3. Open your Project

Sign up to request clarification or add additional context in comments.

3 Comments

I got "Project 'X' could not be opened because the Visual C# 2015 compiler could not be created" in Visual Studio 2015. devenv /resetsettings fixed that issue for VS 2015 too.
@Sergey it didn't solve mine, I am still getting "Visual C# 2015 compiler could not be created" while creating a new project. Note: I tried all the mentioned answers!!!
@Sergey I am facing the same problem with same VS 2015. But it message me to reinstall VS. While I have run to repair it
11

After trying everything, I fixed this by reapplying the SP1, without needing to reinstall the whole VS. Hope it helps someone else!

3 Comments

How do you reapply it?
@JoePhilllips just run the SP1 installer again
@alf Thanks. I had a similar problem and nothing would work. Had to completely reinstall new version of VS
0

I had a similar problem, but the error message also included "Query Service for { } failed." I tried opening VS with both the /ResetSkipPkgs and /ResetSettings switches, which didn't work. I finally fixed it by deleting the following registry key.

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio

Visual studio will lose all user preferences the next time you start it.

Comments

0

VS2015 - My issue was in the sln file. Reverting to previous revision resolved the issue.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.