【问题标题】:Project could not be opened because the Visual C# 2015 compiler could not be created. Please re-install Visual Studio无法打开项目,因为无法创建 Visual C# 2015 编译器。请重新安装 Visual Studio
【发布时间】:2018-02-02 21:37:11
【问题描述】:

我有一台装有 VS 2012、VS 2015 和 VS 2017 的 Windows 10 电脑。

该解决方案是为 2015 平台工具集创建的。当我在 VS 2017 中打开解决方案并尝试构建它时,它工作正常。

如果我在 VS 2015 中打开它并构建它,那也可以。

但是当我尝试使用以下方法构建它时:

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" [链接到 .sln 文件] /Build "Release|Win32" /Out "build.log"

我收到错误消息:

无法打开项目“URCSLogger”,因为无法创建 Visual C# 2015 编译器。请重新安装 Visual Studio。

我尝试了所有in this fix,但没有任何效果。有什么建议吗?

【问题讨论】:

    标签: c# visual-studio-2015


    【解决方案1】:

    你试过MsBuild.exe [Path to your solution(*.sln)] /t:Build /p:Configuration=Release;Platform=x86 吗?

    在此处查看 MSDN 文档:https://msdn.microsoft.com/en-us/library/ms164311.aspx

    请确保您的解决方案中有Release | x86 配置设置。见How do I specify the platform for MSBuild?

    希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 2011-11-18
      • 2010-10-20
      • 2016-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多