Questions tagged [fxcopcmd]

Command-line version of Microsoft's FxCop, a free static analysis tool for analyzing .NET managed code assemblies.

42 questions
0
votes
1 answer

Jenkins FxCop errors should fail the build

I have a FxCop.project file which i call using a Jenkins job "C:\Program Files (x86)\Microsoft Fxcop 10.0\FxCopCmd.exe" /project:"D:\Testing\Source\FxCop\BrokerApplication.FxCop" /out:"D:\Testing\Source\FxCop\BrokerApplication.xml" What i want is…
Anuja Lamahewa
  • 897
  • 1
  • 11
  • 23
0
votes
0 answers

FXCOP analysis with SONARQube fails the build and SONAR analysis never completes and hence analysis results never reached SONAR server

FXCOP analysis with SONARQube fails the build and SONAR analysis never completes and hence analysis results never reached SONAR server. So How to make the FXCOP analysis result publish at the SONAR server. I am using SONAR 5.6 and sonar scanner for…
usFarswan
  • 193
  • 2
  • 10
0
votes
2 answers

Strange Code Analysis Problem About TFS 2010 Build

I have got strange problems in the last few days. Today's strange problem is about Code Analysis and TFS 2010 Builds. After we had upgraded our TFS from 2008 to 2010, we then upgraded our solutions from Visual Studio 2008 to 2010. There were no…
bahadir arslan
  • 4,535
  • 7
  • 44
  • 82
0
votes
0 answers

Can we perform the Code Analysis using FxCopCmd for a directory(Collection of .exe and .dll) instead of for a particular file(.exe or .dll)

I am facing a problem with analyzing the code using FxCopCmd. It works perfectly when i check for a sing file but it doesn't work when I replace it with a directory. May be i am not using the correct Command. fxcopcmd.exe…
0
votes
1 answer

Is there a way to make fxcopcmd to always return 0?

I would like to use fxcop in a continuous build, and almost every class in my project are analysed, but there is some exception (assembly load) and it makes the fxcopcmd exit with error code 8. So the continuous build fails, because of this error…
Maxime ARNSTAMM
  • 5,274
  • 10
  • 53
  • 76
0
votes
1 answer

FxCopCmd.exe show violations only when executing on multiple assemblies at the same time

I encounter a really weird behaviour with fxcopcmd.exe. If I launch the fxcopcmd.exe specifying only one assembly (Assembly X), there is no violations. But if I specify all the assemblies of the solution, it throws a lot of violation in (Assembly…
0
votes
1 answer

FxCop with SonarQube when assemblies are built from different directory

I'm using SonarQube 4.0 and C# plugin 3.1 with FxCop 10. I have assemblies provided to me by an upstream build. I use the sonar-runner plugin in Gradle. When the sonar-runner reaches the FxCop analysis, I get log output like this: 16:43:16.660 INFO …
Andy McKibbin
  • 784
  • 1
  • 6
  • 21
0
votes
1 answer

FxCopCmd in TFS 2010 vs Code Analysis VS.NET 2012

This question of FxcopCmd vs Code Analysis has been discussed in SO, but my question is a bit more specific. We use VS2012 for development and TFS 2010 for TFS Builds. My question is - Without having VS2012 installed on TFS, I wanted to know if VS…
Lalman
  • 946
  • 2
  • 11
  • 27
0
votes
2 answers

How to get the New(increase) FxCop warnings through command line?

Does anyone have an idea , how would I get an xml or a html with just the increase in FxCop count. Presently this is my fxcop cmd , where I replace {0} and {1} and create a batch file dynamically and run. I get the complete fxcop warnings although…
Rameez Ahmed Sayad
  • 1,300
  • 6
  • 16
  • 29
0
votes
1 answer

Query FxCop For Supported Rules (Using commandline)

I would like to run a command to see all rules that FxCop will support (based on the DLLs in its Rules directory). Is this possible?
ademartini
  • 1,311
  • 1
  • 14
  • 24
0
votes
2 answers

How to convert a ruleset file into a FXCop rules dll?

Am trying to configure the static code analysis(FxCop) in my Continuous integration system.But my developers are using a rule set file for static analysis with Visual Studio. Is there a way that i can re-use the same rule-set file and convert it…
Ravi
  • 225
  • 1
  • 15
0
votes
1 answer

513 Error Code (exit code) FxCop using C#

I have VS2010, Windows 7 bits, FxCop 10.0 I execute Fxcopcmd.exe using Process.Start, and I get 513 "exitcode" (error code) value. Todd King in below reference says: In this case an exit code of 513 means FxCop had an Analysis Error (0x01) and an…
Kiquenet
  • 14,494
  • 35
  • 148
  • 243
1 2
3