声纳视觉工作室bootstrapper无法正常工作

时间:2015-07-20 11:20:39

标签: sonarqube fxcop bootstrapper sonarqube-4.5

我已经更改了csharp声纳运行器属性,以便使用visual studio bootstraper执行,但fxcop并未应用。

当我运行normaly时,fxcop检测到几个规则不合规。

代码:

sonar-project.properties default

# Note: It is not recommended to use the colon ':' character in the projectKey
sonar.projectKey=org.example.csharpplayground
sonar.projectName=C# playground
sonar.projectVersion=1.0

sonar.sourceEncoding=UTF-8

# Disable the Visual Studio bootstrapper
sonar.visualstudio.enable=false
sonar.sources=
sonar.exclusions=obj/**
sonar.modules=CalcAddTest,CalcMultiplyTest,CalcDivideTest,CalcSubtractTest
#,MyLibrary

# Configure the main and/or test sources of each project
CalcAddTest.sonar.tests=.
CalcMultiplyTest.sonar.tests=.
CalcDivideTest.sonar.tests=.
CalcSubtractTest.sonar.tests=.
MyLibrary.sonar.sources=.

# Code Coverage
sonar.cs.ncover3.reportsPaths=coverage.nccov
sonar.cs.opencover.reportsPaths=results.xml
sonar.cs.dotcover.reportsPaths=dotCover.html
sonar.cs.vscoveragexml.reportsPaths=VisualStudio.coveragexml

# Unit Test Results
sonar.cs.vstest.reportsPaths=TestResults/*.trx

# Required only when using SonarQube < 4.2
sonar.language=cs

# FxCop
CalcAddTest.sonar.cs.fxcop.assembly=CalcAddTest/bin/Debug/CalcAddTest.dll
CalcMultiplyTest.sonar.cs.fxcop.assembly=CalcMultiplyTest/bin/Debug/CalcMultiplyTest.dll
CalcDivideTest.sonar.cs.fxcop.assembly=CalcDivideTest/bin/Debug/CalcDivideTest.dll
CalcSubtractTest.sonar.cs.fxcop.assembly=CalcSubtractTest/bin/Debug/CalcSubtractTest.dll
#MyLibrary.sonar.cs.fxcop.assembly=MyLibrary/bin/Debug/MyLibrary.dll

sonar-project.properties with visual studio

sonar.projectKey=TEST:org.example.csharpplayground
sonar.projectName=TEST:C# playground
sonar.projectVersion=1.0

sonar.sourceEncoding=UTF-8

sonar.sources=.
sonar.visualstudio.enable=true
sonar.visualstudio.skipIfNotBuilt=true
sonar.dotnet.visualstudio.solution.file=CSharpPlayground.sln

0 个答案:

没有答案
相关问题