我有 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.
到目前为止我做了什么:
What I've done so far :
但问题依旧.
我尝试从头开始创建一个新的控制台项目解决方案,但在这种情况下,我得到了完全相同的错误,并且下面还显示了一个额外的错误错误:
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%MicrosoftVisualStudio15.0_xxxxComponentModelCache
,然后打开VS创建一个新的Console项目.
You can try to close all VS 2017 instances and delete the folder %localappdata%MicrosoftVisualStudio15.0_xxxxComponentModelCache
, 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 编译器"打开项目时出现错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!