“无法创建C#2017编译器"打开项目时出现错误信息 [英] "C# 2017 compiler could not be created" error message while opening project
问题描述
我有Visual Studio 2017社区版.我有一个使用Visual Studio 2015创建的C#项目.当我尝试在VS 2017中打开该项目时,出现错误消息提示:
I've Visual Studio 2017 community edition. I have a C# project created using Visual Studio 2015. When I try to open the project in VS 2017 I get an error message prompt:
--------------------- Microsoft Visual Studio
--------------------- Microsoft Visual Studio
无法打开项目'dataStructureInCSharp',因为无法创建Visual C#2017编译器. 请重新安装Visual Studio.
Project 'dataStructureInCSharp' could not be opened because the Visual C# 2017 compiler could not be created. Please re-install Visual Studio.
---------------------------确定
--------------------------- OK
如果有人遇到类似问题,我正在寻求帮助.我觉得先进行卸载再重新安装路线对我来说是非常昂贵的,如果没有其他选择,我会最后尝试该选项.
I'm trying to obtain help if anyone else has faced similar issue. I feel going the uninstall and then reinstall route is very costly for me and would try that option last if I've got no other resort.
到目前为止我所做的:
- 尝试使用管理权限启动Visual Studio
但是问题仍然存在.
我尝试从头开始创建一个新的控制台项目解决方案,但在那种情况下,我会得到非常相同的错误,并在下面显示了另一个错误错误:
I tried creating a new console project solution from scratch but in that case I get very same error and an additional error error also shown below:
系统环境:Windows 7 Ultimate Service Pack 1
System Environment: Windows 7 Ultimate Service Pack 1
推荐答案
您可以尝试关闭所有VS 2017实例并删除文件夹%localappdata%\Microsoft\VisualStudio\15.0_xxxx\ComponentModelCache
,然后打开VS创建一个新的Console项目.
You can try to close all VS 2017 instances and delete the folder %localappdata%\Microsoft\VisualStudio\15.0_xxxx\ComponentModelCache
, then open VS to create a new Console project.
或
请以管理员身份重新运行VS 2017安装程序,单击启动"按钮旁边的图标,然后选择修复"进行修复,如下所示:
please re-run the VS 2017 installer as administrator, click the icon beside ‘Launch’ button and choose ‘Repair’ to repair as shown below:
这篇关于“无法创建C#2017编译器"打开项目时出现错误信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!