0

TeamCity + FxCop + formatted HTML output in the FxCop tab

Hello All,

I have TC7 + FxCop 10 working together nicely.  However, the resulting HTML output is largely unreadable.  I am using the default C:\Program Files (x86)\Microsoft Fxcop 10.0\Xml\FxCopReport.xsl file for transformation.  The following is the beginning of the output on the build result's FxCop tab (yes, this is what shows on our the TC web site):

Analysis Report #Title {font-family: Verdana; font-size: 14pt; color: black; font-weight: bold} .ColumnHeader {font-family: Verdana; font-size: 8pt; background-color:white; color: black} .CriticalError {font-family: Verdana; font-size: 8pt; color: darkred; font-weight: bold; vertical-align: middle; } .Error {font-family: Verdana; font-size: 8pt; color: royalblue; font-weight: bold; vertical-align: middle; } .CriticalWarning {font-family: Verdana; font-size: 8pt; color: darkorange; font-weight: bold; vertical-align: middle; } .Warning {font-family: Verdana; font-size: 8pt; color: darkgray; font-weight: bold; vertical-align: middle; } .Information {font-family: Verdana; font-size: 8pt; color: black; font-weight: bold; vertical-align: middle; } .PropertyName {font-family: Verdana; font-size: 8pt; color: black; font-weight: bold} .PropertyContent {font-family: Verdana; font-size: 8pt; color: black} .NodeIcon { font-family: WebDings; font-size: 12pt; color: navy; padding-right: 5;}
...
Consider using a collection or making this a method. See the design guidelines for more information.Rule File:PerformanceRules.dll [10.0.0.0]Help:http://msdn.microsoft.com/library/0fss9skc(VS.100).aspx


As you can see it is gibberish for we humans.  Here are highlights of my FxCop build runner settings:

Runner Type: FxCop
FxCop version: 10.0
FxCop project file: C:\UserData\MyProject FxCop10 Project File.FxCop
Report XSLT file: C:\Program Files (x86)\Microsoft Fxcop 10.0\Xml\FxCopReport.xsl

Build log for FxCop portion:

[13:11:26]Step 7/7: FxCop (FxCop) (3s)
[13:11:26][Step 7/7] Used autodetected FxCop home directory
[13:11:26][Step 7/7] Starting: "C:\Program Files (x86)\Microsoft Fxcop 10.0\FxCopCmd.exe" /forceoutput /gac "/project:C:\UserData\MyProject FxCop10 Project File.FxCop" /out:C:\TeamCity\buildAgent\temp\buildTmp\fxcop-output-530717187060401767\fxcop-result.xml
[13:11:26][Step 7/7] in directory: C:\TeamCity\buildAgent\work\7dbb3bc94f703064
[13:11:26][Step 7/7] Microsoft (R) FxCop Command-Line Tool, Version 10.0 (10.0.30319.1) X86
[13:11:26][Step 7/7] Copyright (C) Microsoft Corporation, All Rights Reserved.
[13:11:26][Step 7/7]
[13:11:26][Step 7/7] Loading C:\UserData\MyProject FxCop10 Project File.FxCop...
[13:11:26][Step 7/7] Loaded DesignRules.dll...
[13:11:26][Step 7/7] Loaded GlobalizationRules.dll...
[13:11:26][Step 7/7] Loaded InteroperabilityRules.dll...
[13:11:26][Step 7/7] Loaded MobilityRules.dll...
[13:11:26][Step 7/7] Loaded NamingRules.dll...
[13:11:26][Step 7/7] Loaded PerformanceRules.dll...
[13:11:26][Step 7/7] Loaded PortabilityRules.dll...
[13:11:26][Step 7/7] Loaded SecurityRules.dll...
[13:11:26][Step 7/7] Loaded SecurityTransparencyRules.dll...
[13:11:26][Step 7/7] Loaded UsageRules.dll...
[13:11:27][Step 7/7] Loaded CrxReports.dll...
[13:11:27][Step 7/7] Initializing Introspection engine...
[13:11:28][Step 7/7] Analyzing...
[13:11:29][Step 7/7] Analysis Complete.
[13:11:29][Step 7/7] Writing 666 messages...
[13:11:29][Step 7/7] Writing report to C:\TeamCity\buildAgent\temp\buildTmp\fxcop-output-530717187060401767\fxcop-result.xml...
[13:11:29][Step 7/7] Done:00:00:03.4570000
[13:11:29][Step 7/7] Process exited with code 0
[13:11:29][Step 7/7] Publishing artifacts
[13:11:29][Step 7/7] Importing inspection results
[13:11:29][Step 7/7] Won't handle tag head
[13:11:29][Step 7/7] Won't handle tag style
[13:11:29][Step 7/7] Won't handle tag script
[13:11:29][Step 7/7] Won't handle tag body
[13:11:29][Step 7/7] Won't handle tag head
[13:11:29][Step 7/7] Won't handle tag style
[13:11:29][Step 7/7] Won't handle tag script
[13:11:29][Step 7/7] Won't handle tag body
[13:11:29][Step 7/7] Generating HTML report
[13:11:29][Step 7/7] Publishing artifacts



Any ideas?  I've Googled the heck out of this but apparently I'm the only one running into bad HTML output.

Thanks for your time!

Troy

0 comments

Please sign in to leave a comment.