I am running Teamcity on
OS: Windows Server 2012
Build: 8.1.2 (build 29993)
I am currently running a build agent with Visual Studios 2013 installed and I want to have TeamCity build code analyses for my projects with the FxCop build runner. I also want to email the code analysis results to the users I assigned to the project in Team City.
Here are my questions:
1) How do I go about creating an FxCop build step to run Code Analysis for my Visual Studios 2013 C# .Net projects? (TFS is my source control).
Since I am currently using VS2013 I am technically using FxCop version 12.0 without a stand alone installation.
When I tried specifying the installation root to the tool in my Program Files I receive this error
Cannot run process C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\FxCop\FxCopCmd.exe\FxCopCmd.exe /forceoutput /gac /ignoregeneratedcode /f:myprojectassemblies.dll /out:C:\TeamCity\BuildAgent\temp\buildTmp\fxcop-output-2227917996369366933\fxcop-result.xml : file not found
I even tried specifying the Report XSLT file "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\FxCop\Xml\FxCopReport.xsl"
and I still get the same error.
2) What do I need to do to create and email the results file or the contents of the results file of the Code Analysis build via TeamCity?