Thursday, November 22, 2007 3:06 PM Sean Feldman

Enable MbUnit with MSBuild from Visual Studio

Editing the project file and adding this section will ensure the MbUnit tests are executed on successful builds.

<PropertyGroup>
    <PostBuildEvent>"$(ProjectDir)<location in the project>\MbUnit.Cons.exe" "$(TargetPath)"  /sr /rt:text</PostBuildEvent>
</PropertyGroup>

location in the project - something that I picked up from JP Boodhoo. The idea is to keep all the tools used for the development encapsulated with the project. That way maintenance and setup on new workstations is not an issue.

Comments

# NAnt And Visual Studio - Reporting From the Field Trip

Thursday, January 03, 2008 12:31 AM by sfeldman.NET

In my previous blog I was looking how to enable MbUnit with MSBuild from visual studio. As nice as it