MSBuild integration on Cruise.Net
Steps
1. Copy Rodemeyer.MsBuildToCCnet.dll to your \CruiseControl.NET\server folder
2. Copy msbuild2ccnet.xsl to your \CruiseControl.NET\webdashboard\xsl folder
3. Copy cruisecontrol.css to your \CruiseControl.NET\webdashboard folder
* If you have modified the dashboards stylesheet, just copy the section-project, section-error, section-warning, error and warning style.
4. In your ccnet.config file locate the task. Change the node to
c:\Program Files\CruiseControl.NET\server\Rodemeyer.MsBuildToCCNet.dll
I highly suggest that you set the verbosity level to quiet or minimal to avoid excessive large log files!
/v:quiet /noconlog /p:Configuration=Debug
5. In your dashboard.config file locate the section. Remove the compile-msbuild.xsl and msbuild.xsl if present. Theses transformations are not compatible with the MsBuildToCCNet logger. Add the msbuild2ccnet.xsl transformation instead.
xsl\header.xsl
xsl\msbuild2ccnet.xsl
xsl\modifications.xsl
[...]
Thats it! Just force a build and enjoy your new report.
Here is the complete code.
<project> <name>MyProject</name> <workingDirectory>D:\vhosts\MyProject</workingDirectory> <sourcecontrol type="vsts" autoGetSource="true" applyLabel="true"> <server>http://192.168.192.4:8080</server> <username>TFSSERVICE</username> <password>TFSSERVICE</password> <domain>mydomain.com.np</domain> <project>$/myproject/myproject</project> <workingDirectory>D:\vhosts\MyProject</workingDirectory> <cleanCopy>false</cleanCopy> <workspace>dotnet</workspace> </sourcecontrol> <publishers> <!--<devenv> <solutionfile>myproject.sln</solutionfile> <configuration>Debug</configuration> <buildtype>Build</buildtype> <project>MyProject</project> <executable>C:\Program Files\Microsoft Visual Studio 8.0\Common7\IDE\devenv.exe</executable> <buildTimeoutSeconds>600</buildTimeoutSeconds> <version>VS2005</version> </devenv>--> <msbuild> <executable>C:\WINDOWS\Microsoft.NET\Frameworkv2.0.50727\MSBuild.exe</executable> <workingDirectory>D:\vhosts\MyProject</workingDirectory> <projectFile>myproject.sln</projectFile> <buildArgs>/v:quiet /noconlog /p:Configuration=Debug</buildArgs> <targets>Build</targets> <timeout>200</timeout> <logger>c:\Program Files\CruiseControl.NET\server\Rodemeyer.MsBuildToCCNet.dll</logger> </msbuild> <xmllogger></xmllogger> </publishers> </project>






