5

I have msbuild script that perfectly working. But when it runs when build task executed I'm seeing all output of building progress. Is there a way to just write :

Building project ... OK.

instead of 1000 rows of text?

1 Answers1

14

Use verbosity parameter to set log to the level you'd like, e.g.:

msbuild myScript.proj /verbosity:quiet

UPD:

Sorry, that was not clear from the original question, but (from the comments) it looks like you want to have different verbosity levels for different Tasks. I don't think this is supported out-of-the box. You could try 2 solutions:

  1. Run your task using Exec task (see this question for details)
  2. Implement a custom logger and filter messages by task name.
Community
  • 1
  • 1
Isantipov
  • 19,491
  • 2
  • 26
  • 41
  • Thanks, Yes, but I call build as task from xml. I need other task write to log, as . but not task – Valentyn Vynogradskiy Oct 13 '14 at 12:28
  • Sorry, that was not clear from the original question: it looks like you want to have different verbosity levels for different Tasks. I've updated the answer with the options I see – Isantipov Oct 13 '14 at 13:46