Microsoft visual C# 2008 compiler could not be cre

2019-01-23 04:51发布

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."

8条回答
你好瞎i
2楼-- · 2019-01-23 05:35

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.

查看更多
成全新的幸福
3楼-- · 2019-01-23 05:41

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.

查看更多
Evening l夕情丶
4楼-- · 2019-01-23 05:42

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.

查看更多
欢心
5楼-- · 2019-01-23 05:45

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

查看更多
聊天终结者
6楼-- · 2019-01-23 05:46

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

查看更多
甜甜的少女心
7楼-- · 2019-01-23 05:49

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

查看更多
登录 后发表回答