Questions tagged [fxcopcmd]

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

42 questions
1
vote
1 answer

FxCop1.36 and failonerror

I am running FxCop using Apache Ant. For version 1.36, if all the dependency information are not given by the user, the analysis returns an error code, but a report is created, which might suggest there are no issues with the code base. Setting…
Raj
  • 71
  • 1
  • 10
1
vote
2 answers

FxCop + command line execution?

does anyone know how to or can provide the syntax for running FxCop via command line. i want to set a task to run a defined rules.fxcop file (this is a empty project that i made with only a select set of rules enabled to reduce noise and check for…
kacalapy
  • 9,806
  • 20
  • 74
  • 119
1
vote
2 answers

Unable to find and install Analysis Bootstrapper plugin in SonarQube

I am trying to enable to FXcop rules in sonar and analyze the code . But I am getting the below error in ERROR: Caused by: The property "sonar.cs.fxcop.assembly" must be set and the pro ject must have been built to execute FxCop rules. This …
Midhun Murali
  • 2,089
  • 6
  • 28
  • 49
1
vote
0 answers

FXCop assembly load failure

Command line: "C:\Program Files (x86)\Microsoft Fxcop 10.0\FxCopCmd.exe" /file:XXX.exe /out:fxcop-report.xml /outxsl:none /forceoutput /searchgac /assemblyCompareMode:StrongNameIgnoringVersion /verbose Error from report: …
Adrian Rus
  • 329
  • 1
  • 4
  • 9
1
vote
3 answers

Visual Studio Code Analysis Deadlock

I am getting a deadlock error when I run code analysis from VS2013. I'm pretty sure all I need to do is increase or disable the deadlock timeout because I can run code analysis with standalone FX Cop 10. Is there something I can do to the csproj…
1
vote
0 answers

CodeAnalysis using msbuild does not fail on warning/error

I started down this path of wanting to do code analysis on my solution using msbuild. I was looking at FxCop but it appears to now be part of Visual Studio and from my understanding you need Visual Studio installed on your build agents. I am calling…
devfunkd
  • 3,164
  • 12
  • 45
  • 73
1
vote
1 answer

sonar fxcop results not displayed

I'm trying to use Sonar on some ASP.Net applications. I have installed Sonar and configured C# environment, and I get this working...except for FXcop (Code Analysis). I followed the official documentation : sonar-runner.bat is ok FXCop path is well…
1
vote
1 answer

How to remove the /aspnet parameter from FxCopCmd (error CA0001)

I'm trying to use FxCop on SonarQube 4.5.1, but the FxCopCmd is failing. The problem is, when SonarQube creates the FxCopCmd call, he adds the parameter /aspnet. Since my program is a Web Project and not a Web Site, this parameter is causing 4…
Jammes Lee
  • 13
  • 3
1
vote
2 answers

How can I run select FxCop rules using the command line?

I know you can create a project and use relative paths, but I don't want to keep the project file in version control. Let's say for the sake of brevity that I only want to run one rule, CA1001, from Microsoft.Design. How can I specify this with…
Lunyx
  • 3,164
  • 6
  • 30
  • 46
1
vote
1 answer

Configure FxCopCmd Assembly Compare Mode in SonarQube

Running FxCop using SonarQube results in an assembly resolve issue as I have an assembly binding redirect which is not recognized by FxCop. Is there a setting in SonarQube to call FxCopCmd with option /assemblyCompareMode:StrongNameIgnoringVersion…
LaOsgaar
  • 115
  • 1
  • 8
1
vote
0 answers

Can we specify in FxCopCmd line to use only pdb dlls?

When we run FxCopCmd keeping *.dll as the input , is there anything we can do to just run the ones with pdb , so that we don't get the error Failed to Load assemblies without the pdb? UPDATE: It's not an error maybe because the execution continues,…
Rameez Ahmed Sayad
  • 1,300
  • 6
  • 16
  • 29
1
vote
2 answers

FxCop CA1047 - Abstract and accessibility level

I have this code (sample to reproduce): public class ObjectBase { } public abstract class ExportBase { public void ExportData(string path, T data, string filename) where T : ObjectBase { // Several…
kerrubin
  • 1,606
  • 1
  • 20
  • 25
1
vote
1 answer

FxCop - How to resolve Windows, Version 255.255.255.255?

I am trying to get FxCop 10 to run analysis on a Windows 8 build computer and seem to have run up against a wall. When I run it with /verbose against a dll, I get: Could not resolve reference to Windows. Could not load [path to my dll]. The…
1
vote
1 answer

How to identify a Method in fxcop

I am trying the create a custom fxcop rule which checks for all the methods in target assembly having their names NOT starting with the CAPITAL letter. I am pretty successful in doing this but there is one problem. The rule throws error for…
Sagar
  • 645
  • 2
  • 9
  • 31
0
votes
2 answers

How to display fxcop report Jenkins artefact in Firefox?

I have a problem with displaying FXCop 10.0 report in Jenkins. FXCop result & FxCopReport.xsl are added as artefacts. We call FXCop with /oXsl parameter to modify the reference to xsl and it looks like this:
Robert.K
  • 506
  • 5
  • 18