gpt4 book ai didi

c# - 打开项目时出现 "C# 2017 compiler could not be created"错误信息

转载 作者:太空狗 更新时间:2023-10-29 17:34:47 24 4
gpt4 key购买 nike

我有 Visual Studio 2017 社区版。我有一个使用 Visual Studio 2015 创建的 C# 项目。当我尝试在 VS 2017 中打开该项目时,出现错误消息提示:

--------------------- Microsoft Visual Studio


Project 'dataStructureInCSharp' could not be opened because the Visual C# 2017 compiler could not be created.Please re-install Visual Studio.

--------------------------- OK

如果其他人遇到类似问题,我正在努力寻求帮助。我觉得卸载然后重新安装路由对我来说成本非常高,如果我没有其他选择,我会最后尝试该选项。

到目前为止我做了什么:

  • 尝试以管理权限启动 visual studio

但问题依旧。

我尝试从头开始创建一个新的控制台项目解决方案,但在那种情况下,我得到了完全相同的错误,并且下面还显示了一个额外的错误:

enter image description here

系统环境:Windows 7 Ultimate Service Pack 1

最佳答案

您可以尝试关闭所有VS 2017实例并删除文件夹%localappdata%\Microsoft\VisualStudio\15.0_xxxx\ComponentModelCache,然后打开VS新建一个Console项目。

或者

请以管理员身份重新运行 VS 2017 安装程序,单击“启动”按钮旁边的图标,然后选择“修复”进行修复,如下所示:

enter image description here

关于c# - 打开项目时出现 "C# 2017 compiler could not be created"错误信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45704271/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com