在 Visual Studio 2017 RC 中编译我的解决方案时,我得到
C:\Code\src\MSBUILD : error MSB1001: Unknown switch.
Switch: -
For switch syntax, type "MSBuild /help"
在每个项目上。
我可以使用 Visual Studio 2015 编译解决方案。我已将构建输出更改为“诊断”,这仍然是我所看到的。
最佳答案
看起来它是轻量级的解决方案负载。我在解决方案上按 F4 并禁用轻量级负载,关闭 VS 并重新打开解决方案,现在它工作正常。
我刚刚重新启用了轻量级负载,果然我得到了同样的错误——绝对是轻量级负载。
关于visual-studio-2017 - 错误 MSB1001 : Unknown switch - Visual Studio 2017 RC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40733008/