I am trying to use a batch file in a make project in VS2010.
The batch file launches various internal tools some of which are writing in Perl 5.8.8.
I always see the 'exited with code -1' when the batch file build is successful.
I added code to examine %errorlevel% and it returns 0 when MSBuild returns 'exited with code -1'.
- So explicitly setting errorlevel does not help.
- surrounding the batch file with setlocal and endlocal did not help.
Where is the MSBuild environment getting the -1 value?
1) How can I override this value so MSBuild does not display the error.
BTW: the error always displays the entire contents of the 'Build Command Line' field which is lengthy in my case.
2) How can I suppress this too?
Thanks,
J.R.