Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Verbosity of MSBuild Copy Command

In an MSBuild task, you can set the overall verbosity, but what I'd really like to do is set the Verbosity of just the 'Copy' command. It prints out a line for every file it's copying in the "normal" verbosity setting, which in my case is thousands of overly-detailed lines.

I don't see any documentation for such an attribute on the Copy task, so I'm wondering if there's another way... or if people just ditch the built in copy task and use robocopy with their own flags.

like image 917
Tom Lianza Avatar asked Apr 11 '12 22:04

Tom Lianza


1 Answers

You can write your own build logger. Add copy task to a specific target and filter build mesages from that specific target(s).

Here is nice example of custom logger.
You have to pass /logger parameter with your custom logger to MSBuild command line.

like image 91
Ludwo Avatar answered Oct 17 '22 03:10

Ludwo