FxCop error code 512 arise if the sonar runner does not found the dependent assemblies location:
For resolving this error you have to set the assemblyDependencyDirectories Property in Sonar-Runner. The value of this should be the comma-separated list of path patterns to locate the directories where dependency assemblies can be found.
These paths can be absolute or relative, the starting point being the folders where the csproj files are located. Also the special key $(SolutionDir)
can be used to build a path relative to the root folder of the solution (i.e. where the sln file is located).
E.g.: $(SolutionDir)/**/libs
(and not $(SolutionDir)/**/libs/*.dll
)
E.g.: sonar.fxcop.assemblyDependencyDirectories=$(SolutionDir)/**/libs,$(SolutionDir)/**/Debug
For detailed solution and resolution of some more sonar runner error click here.