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!
- Open VS command prompt
Run the following command
devenv /resetsettings
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.
精彩评论