我有一台安装了VS 2012,VS 2015和VS 2017的Windows 10 PC。
该解决方案是为2015平台工具集创建的。当我在VS 2017中打开解决方案并尝试构建它时,它运行正常。
如果我在VS 2015中打开它并构建它,那也可以。
但是当我尝试使用以下方法构建它时:
" C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ devenv.exe" [链接到.sln文件] / Build"发布| Win32" / Out" build.log"
我收到错误消息:
Project' URCSLogger'因为无法创建Visual C#2015编译器而无法打开。请重新安装Visual Studio。
我尝试了所有事情in this fix但没有任何效果。有什么提示吗?
答案 0 :(得分: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?
希望这有帮助。