fxcop执行失败,返回码为515

时间:2014-01-13 13:19:12

标签: .net sonarqube fxcop sonar-runner

我已经在我的机器上安装了声纳和声纳跑步器,试图在sonar-runner.properties中分析一个dotnet mvc项目,其内容是:

# Required metadata
sonar.projectKey=Test:TwitterWithAOP1
sonar.projectVersion=trunk
sonar.projectName=TwitterWithAOP
# Paths to source directories.
# Paths are relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# Do not put the "sonar-project.properties" file in the same directory with the source code.# (i.e. never set the "sonar.sources" property to ".")
sonar.sources=C:/Users/barumugham/Documents/Visual Studio 2013/Projects/TwitterWithAOP/TwitterWithAOP
sonar.language=cs
# Encoding of the source 
codesonar.sourceEncoding=UTF-8 
# Additional parameters
sonar.my.property=value
sonar.fxcop.installDirectory=C:/Program Files (x86)/Microsoft FxCop 1.36
sonar.fxcop.assemblyDependencyDirectories=C:/Users/barumugham/Documents/Visual Studio 2013/Projects/TwitterWithAOP/TwitterWithAOP/bin/

我的执行显示fxcop执行失败,返回码为515.查看fxcop文档以获取更多详细信息

1 个答案:

答案 0 :(得分:0)

解决方案是

sonar.fxcop.assemblyDependencyDirectories=/gac  The misssing assemblies path was set to the gac in the sonar-project.properties file and also this line

sonar.dotnet.visualstudio.solution.file=name.sln indicating the solution path.

现在声纳跑步者正在工作。