I assumed %ERRORLEVEL% would be non-zero if the build failed, but that is not the case.
I assumed %ERRORLEVEL% would be non-zero if the build failed, but that is not
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 :
vcvars32.batwas calledvcbuild /u /rebuild myproject.sln "%CONFIGURATION%|Win32"@if errorlevel 1 goto errormarkIf 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 ?