I have a batch file that is executed as part of pre-build events in VC++ based project , within VS2012 IDE framework.The file , on error does following:
exit /B 0
:Error0
echo ****************************************************************************
set ErrorMssg="Attributes don't match"
echo ****************************************************************************
exit /B 1
When executed from shell(wIn 7),it prints the error message correctly, when error condition is hit. However, from within Visual Studio, I only get error code, which i specified in the batch file:
error MSB3073: :VCEnd" exited with code 1
Is there a way for Visual Studio to actually print the reason for error,for example something like
error MSB3073: :VCEnd" exited with code 1: Attributes don't match
Thanks
sedy