Generate FxCop Results xml in teamcity -
I have to set up a build step for FxCop in TeamCita. I also need to create FxCP results in an XML file. Please help Kripa Marie. I'm new to TeamCity. I really appreciate it if any screenshot can also post. I did google, but could not be able to understand properly.
To run FxCop in TeamCity, follow these steps:
-
Install FxCop on the agent (or if you have all agents).
Download it here:
-
Edit the file
buildAgent.propertiesand add information about the FxCop instalation folder.Add line: system.FxCopRoot = C: \ Program Files (x86) \ Microsoft Fxcop 10.0
-
Build Build Steps It's Now Easy to Have Interesting Settings :
Runnert Type: FxCop
FxCop version: 10.0
Assemblies: for example bin *. Dll
Report XSLT file:% system.FxCopRoot% / Xml / FxCopReport.xsl
Additional FxCopCmd Options: For example
/ ruleSet: "=% teamcity.build. WorkingDir% \ core \ ProjectRules.ruleset ". I use it to specify custom rule settings
XML is generated from a path that can then be found in the build log. You can use more FxCopCmd parameters to change the path, here's more information:
Let me know if you have any questions.
Comments
Post a Comment