While building using Team Build, the build process creates one log file (for compilation and code analysis errors and warnings) per platform-flavor for all solutions. However, few weeks back, while talking to a customer about Team Build, a new requirement came up. The customer wanted to have one log file per platform-flavor per solution. In his scenario, they had not ran code analysis before and turning that on was resulting in lots of errors/warnings all across the team project. He wanted to separate the warnings out into different log files per solution as the owners were different.
He asked me if this could be done. Well yes, anything for the customer!!!
Attached is the code for custom MSBuild logger that -
Using this logger is easy -
This is just one example of ease with which one can extend MSBuild and Team Build. If you are interested in writing custom logger, you will find following posts useful -