错误 MSB1001:未知开关 - Visual Studio 2017 RC

error MSB1001: Unknown switch - Visual Studio 2017 RC

在 Visual Studio 2017 RC 中编译我的解决方案时,我得到

C:\Code\src\MSBUILD : error MSB1001: Unknown switch.
  Switch: -

  For switch syntax, type "MSBuild /help"

在每个项目上。

我可以使用 Visual Studio 2015 编译解决方案。我已将构建输出更改为 'Diagnostic',这仍然是我所看到的。

看起来是轻量级解决方案加载。我在解决方案上按F4并禁用轻量级负载,关闭VS并重新打开解决方案,现在可以正常工作了。

我刚刚重新启用了轻量级负载,果然我得到了同样的错误——绝对是轻量级负载。