devenv.exe与devenv.com

上星期在做visual studio自动构建的时候,突然发现build过程的日志没有在命令行输出,这样子一旦build失败,就看不到错误原因了。奇怪的是以前是可以看到这些日志的。先后怀疑了CMakeList.txt,构建脚本后,终于发现脚本中有一句devenv solution.sln /rebuild被改成了devenv.exe solution.sln /rebuild 。诱因找到了,背后的原理何在?MSDN的这个页面有很好的说明,Devenv Command Line Switches

The devenv.com utility provides for the delivery of output through standard system streams, such as stdout and stderr, and determines the appropriate I/O redirection when it captures output, for example, to a .txt file. Commands that begin instead with devenv.exe can use the same switches, but will send them to the devenv.exe program, bypassing the devenv.com utility.

可以看到,由于多余的加了exe,日志就没有被转发到标准输出上了。

转载于:https://www.cnblogs.com/shawnhue/archive/2012/02/20/devenv_exe_vs_devenv_com.html

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值