Quantcast
Channel: MSBuild forum
Viewing all articles
Browse latest Browse all 2763

MSBuild - error MSB3073: " exited with code -1.

$
0
0

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.


Viewing all articles
Browse latest Browse all 2763


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>