“无法创建 C# 2017 编译器"打开项目时出现错误消息

quot;C# 2017 compiler could not be createdquot; error message while opening project(“无法创建 C# 2017 编译器打开项目时出现错误消息)
本文介绍了“无法创建 C# 2017 编译器"打开项目时出现错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 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 :

  • 尝试使用管理权限启动 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%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 编译器"打开项目时出现错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)