Microsoft visual C# 2008 compiler could not be cre

2019-01-23 04:50发布

问题:

Any idea how to fix this error in Visual Studio? This error occurs when trying to create a new C# Console Application. I can create and build a C# Website, but Intellisense does not work. VB Applications work correctly. I tried upgrading to SP1 but that did not help. I would hate to reinstall Visual Studio and have the error crop up again.

"Microsoft visual C# 2008 compiler could not be created. Please re-install Visual Studio."

回答1:

In the command prompt, I ran:

C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\devenv.exe /resetsettings

Everything works fine now! This saved me a reinstall.



回答2:

I tried "resetsettings" and repairing the installation form add/remove programs, both didn't work.
Solved the issue by deleting the following registry key.

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio

Visual studio will ask you to select the language preference when you open it again. (Make sure that you delete the key from HKCU and not from HKLM)



回答3:

I reinstalled VS2008 but problem persisted.Then upon running

C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\devenv.exe /ResetSkipPkgs 

my problem was resolved.



回答4:

I use deven.exe /ResetSkipPkgs and Solve the problem I guess it's like delete the keys like it sais at http://social.msdn.microsoft.com/Forums/en-US/Vsexpressinstall/thread/04be49aa-de6b-4f45-9a27-86e3f214a0fe



回答5:

None of the above solutions did the trick for me. Maybe it's because we are working with TFS 2010?

What solved the problem for me was reinstalling KB974558

Maybe it was the combination of doing all that registry stuff mentioned above and reapplying the patch - who knows?

Although this thread is a little bit outdated there may be some other guys out there who have to stay with VS 2008 because they have to keep Compact Framework applications alive



回答6:

I was not able to vote, but restart and resetting the settings did not work for me. But deleting HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0 did work for me. Thank you NimsDotNet, sadly I could not vote for that answer for some reason.



回答7:

Run this in the command prompt of visual studio 2008 otherwise, go to this path and run devenv.exe /resetsettings

C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\devenv.exe /resetsettings

and visual studio will be restarted.

if the problem persists try repairing the file from control panel and this works

Thank You



回答8:

Did you try reinstalling Visual Studio like you were told to do?