To create a standard Visual Studio Error or Warning from a Pre-Build or Post-Build Step:
you simply need to ECHO out the right format of text for Visual Studio to recognise:
ECHO warning : my warning message here
ECHO error : my warning message here
you can also specify path to a file, so user can double-click on the error or warning:
ECHO myFilePath(line,column): error MyErrorCode: My error message
ECHO myFilePath(line,column): warning MyWarningCode: My warning message
if you run a console application as part of a pre or post-build step, then you can also output the above format of messages, in order to get nice standard VS errors and warnings.
you simply need to ECHO out the right format of text for Visual Studio to recognise:
ECHO warning : my warning message here
ECHO error : my warning message here
you can also specify path to a file, so user can double-click on the error or warning:
ECHO myFilePath(line,column): error MyErrorCode: My error message
ECHO myFilePath(line,column): warning MyWarningCode: My warning message
if you run a console application as part of a pre or post-build step, then you can also output the above format of messages, in order to get nice standard VS errors and warnings.
Comments
Post a Comment