visual-studio-2019 - devenv.exe 退出而不是构建(Visual Studio Community 2019)

标签 visual-studio-2019 devenv

场景:

  1. 打开 Visual Studio 2019 开发人员命令提示符 v16.3.5
  2. cd c:\some_solution
  3. devenv.exe libogg.sln/Build
  4. devenv.exe 立即退出而不是构建!非常失望...

here .

为什么以及如何解决?

附注在 GUI 模式下,VS 按预期构建 libogg.sln

P.P.S。产品信息:

Microsoft Visual Studio Community 2019
Version 16.3.5
VisualStudio.16.Release/16.3.5+29411.108
Microsoft .NET Framework
Version 4.8.03752

最佳答案

devenv.exe 可以工作,但不会将输出直接输出到控制台。如果您想查看输出,请使用 devenv.com。

Commands that begin with devenv are handled by the devenv.com utility, which delivers output through standard system streams, such as stdout and stderr. The utility determines the appropriate I/O redirection when it captures output, for example to a .txt file.

Alternatively, commands that begin with devenv.exe can use the same switches, but the devenv.com utility is bypassed. Using devenv.exe directly prevents output from appearing on the console.

https://learn.microsoft.com/en-us/visualstudio/ide/reference/devenv-command-line-switches

关于visual-studio-2019 - devenv.exe 退出而不是构建(Visual Studio Community 2019),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58530642/

相关文章:

c# - ASP.NET 和 Visual Studio 2019 : how to set up Web. 调试和 Web.Release 如果 Web.config 中有 configSource?

C# Blazor 错误 BL0005 - 正确设置组件属性

c# - NUnit 不会运行我的单元测试;说测试适配器丢失,但我确实安装了它

c# - 如何在 VS2013 的开发人员命令提示符中打开并运行 devenv\build 命令?

c++ - Devenv.exe with/I 和 whitespacess

visual-studio - 用于多个配置的 Devenv 构建命令

gruntjs - VS 2019 gruntfile.js 使用 'sass = require(' node-sass')' 时找不到任务

asp.net - Visual Studio 2019--来自 HRESULT 0x80041fe4 的异常

command-line - 使用 devenv 为命令行构建指定构建详细程度