Question

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 to solve this problem? I could not find anything in the documentation.

Était-ce utile?

La solution

The current version of the SonarQube runner plugin for FxCop does not seem to support either this command line parameter or a setting for specifying ad-hoc parameters. If you don't feel like adding this support yourself, one workaround would be to change your fxcopcmd.exe.config file to add an appropriate AssemblyReferenceResolveMode setting. e.g.:

<add key="AssemblyReferenceResolveMode" value="StrongNameIgnoringVersion" />
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top