Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 979
alf Avatar asked Sep 16 '11 14:09

alf


2 Answers

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

    devenv /resetsettings

  3. Open your Project

like image 169
H A Avatar answered May 19 '23 11:05

H A


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

like image 29
alf Avatar answered May 19 '23 11:05

alf