visual-studio-2017 - 错误 MSB1001 : Unknown switch - Visual Studio 2017 RC

标签 visual-studio-2017

在 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/

相关文章:

visual-studio - 无法执行分支,抛出数据库更新错误

c++ - 使用 CMake 构建 project.sln 时发布构建事件错误

c++ - 控制台应用程序在 Visual Studio 之外无法正常运行

c# - Visual Studio : [DebuggerDisplay], 在指定格式时显示 "not a valid format specifier"

c# - Azure Function 不反序列化对象

c# - 将 C# 7.1 与 MSBuild 结合使用

angular - 为 Angular 项目启用 Docker 支持

.net - 'Version' 属性未在 nuspec 文件中声明

python - Premake 在我的存储库中找不到 lua 脚本(完全相同的存储库在我的 mainpc 上工作)

sql-server - 将 SQL Server 单元测试项添加到 visual studio 2017 中的单元测试项目时出错