Search code examples
c#static-analysisfxcopsonarqube

How to get FxCop working with Sonar for a C# solution?


I am currently trying to use FxCop to analyze the assemblies generated by my solution within Sonar and am getting the following message when Sonar calls FxCop to scan each project:

INFO  No assembly to check with FxCop

Any help with correcting this issue is much appreciated.


Solution

  • The problem was that all projects were not being built to the same output directory, which was corrected. All projects must be built in order for FxCop to be able to scan since FxCop scans binary files.