开发者

How do I check via batch script whether VCBUILD failed or suceeded

开发者 https://www.devze.com 2023-03-22 06:14 出处:网络
I assumed %ERRORLEVEL% would be non-zero i开发者_如何学JAVAf the build failed, but that is not the case. The folks over at the open source BlueCove project have a batch file that checks the error leve

I assumed %ERRORLEVEL% would be non-zero i开发者_如何学JAVAf the build failed, but that is not the case.


The folks over at the open source BlueCove project have a batch file that checks the error level of vcbuild. It basically goes like this :

  1. Make shure vcvars32.bat was called
  2. vcbuild /u /rebuild myproject.sln "%CONFIGURATION%|Win32"
  3. @if errorlevel 1 goto errormark

If it doesn't help you, please update your question with the batch file that gives you trouble. Maybe your out of luck and a batch file named vcbuild.bat is called before the real vcbuild.exe ?

0

精彩评论

暂无评论...
验证码 换一张
取 消