开发者

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

开发者 https://www.devze.com 2023-04-05 21:58 出处:网络
After installing Debugger Canvas and restarting Visual Studio, I get this error for each project when opening a solution:

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. Open VS command prompt
  2. Run the following command

    devenv /resetsettings

  3. Open your Project


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


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消