Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are some of the best resources to learn MSBuild with?

I am looking for any and all suggestions of the best and effective resources that the StackOverflow community has used to better learn MSBuild with an emphasis on integrating unit tests and later static code analysis tools such as FxCop and StyleCop into the build process.

I have tried to find good clear documentation on adding unit tests into my build but I still am searching - even Google searches have come up empty or with just bits and pieces. Ideally I want to add unit tests, report results, and eventually add code coverage statistics, etc into the build results.

I know it has to be in MSDN somewhere but I seem unable to find anything which explains and teaches well. I am using Visual Studio Team System 2008.

like image 418
Brad Osterloo Avatar asked Nov 04 '08 19:11

Brad Osterloo


1 Answers

Continuous Integration From Theory to Practice by Carel Lotz. It covers the entire scope of your problem, and then some. Well written, complete, and a full sample are all there.

Hands down best resource. Use it as a tutorial first, then use it as a guide, then use it as a reference.

MSDN and others are good for clarifying (or confusing) the details.

Edit: The guide by Carel Lotz uses MBUnit for unit tests (see his earlier document version for NUnit, though you can replace the MBUnit with NUnit pretty easily if you follow the NUnit help files).

Also, it is written to use Cruise Control.NET to run the MSBuild script in various configurations.

Personally, I run unit tests in a secondary MSBuild script, but have found that wrapping the NUnit calls in MSBuild gives more flexibility than running from CCNet directly.

like image 125
Rob Hunter Avatar answered Oct 03 '22 13:10

Rob Hunter