开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜