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

1

本文介绍了“无法创建 C# 2017 编译器"打开项目时出现错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我有 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 编译器"打开项目时出现错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

C# 中的多播委托奇怪行为?
Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)...
2023-11-11 C#/.NET开发问题
6

参数计数与调用不匹配?
Parameter count mismatch with Invoke?(参数计数与调用不匹配?)...
2023-11-11 C#/.NET开发问题
26

如何将代表存储在列表中
How to store delegates in a List(如何将代表存储在列表中)...
2023-11-11 C#/.NET开发问题
6

代表如何工作(在后台)?
How delegates work (in the background)?(代表如何工作(在后台)?)...
2023-11-11 C#/.NET开发问题
5

没有 EndInvoke 的 C# 异步调用?
C# Asynchronous call without EndInvoke?(没有 EndInvoke 的 C# 异步调用?)...
2023-11-11 C#/.NET开发问题
2

Delegate.CreateDelegate() 和泛型:错误绑定到目标方法
Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)...
2023-11-11 C#/.NET开发问题
14