我已经在我的机器中安装了声纳和声纳运行器,试图在声纳运行器中分析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 文档以获取更多详细信息
解决方案是
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.
现在声纳转轮工作了。