Logging

When you run MSBuild, the tool displays events and output information to the Console window as the default log. You can choose different output targets and detail level for logging by utilizing some specific command-line switches. For example, imagine you want to redirect log information to a text file instead of showing messages in the Console window, providing a high-level of verbosity about events details. This can be accomplished with the following command line:

image

The /noconsolelogger switch tells MSBuild to not send any message to the Console window. The /logger switch enables specifying where the log needs to be sent; several logs ...

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.