Reputation: 4072
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.
Upvotes: 11
Views: 2369
Reputation: 9938
You can write your own Copy task, adding an optional Verbosity parameter.
Upvotes: 0
Reputation: 6173
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.
Upvotes: 1