Not sure what happened here; I believe the network admin has updated CruiseControl. One thing is for sure though: the text of the warnings issued by MSBuild is no longer present in the build report. Instead, I get a list of codes that is of no use to me.
The culprit is an XSL stylesheet, namely %PROGRAM_FILES\CruiseControl.NET\webdashboard\xsl\compile-msbuild.xsl. This stylesheet takes the build report as input and must produce readable HTML. It does not include the messages in the HTML it produces.
While you can go low-level and edit the XSLT yourself, I preferred replacing this file with one that already does the job nicely: msbuild2ccnet.xsl. This stylesheet groups the warnings by project and it’s sufficient. After saving the stylesheet, refresh the build report page.
Note: I have a hunch that msbuild.xsl is used instead of compile-msbuild.xsl if you run MSBuild as a CC.NET task and not as an external executable. If this should be the case, then address the problem in this other file. In general, locate for all the templates matching warning or error in a MSBuild context, in all XSL files in the mentioned directory, and add the correct value-of selectors.
Post a Comment
You must be logged in to post a comment.