which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
sonarqube-8.9.0.43852
sonar-scanner-3.3.0.1492
SonarScanner for MSBuild 4.6.2
what are you trying to achieve
Get results for one of our Sonar projects. The other 7 projects (C# and C++) all produce results. This is a .Net project that indicates the project is empty.
what have you tried so far to achieve this
Ran the following commands from a command prompt:
SonarScanner.MSBuild.exe begin /k:âFTA-EasyActivateâ /d:sonar.host.url=âhttp://localhost:9000â /d:sonar.login=âd66c0714fc4765e939a2fa6ed2c65b2d25be1416â /d:sonar.cfamily.build-wrapper-output=âbw_outputâ
SonarScanner.MSBuild.exe begin /k:âFTA-EasyActivateâ /d:sonar.host.url=âhttp://localhost:9000â /d:sonar.login=âd66c0714fc4765e939a2fa6ed2c65b2d25be1416â /d:sonar.cfamily.build-wrapper-output=âbw_outputâ
SonarScanner.MSBuild.exe end /d:sonar.login=âd66c0714fc4765e939a2fa6ed2c65b2d25be1416â
The results of FTA-EasyActivate (vs. the other projects) is shown in the image.
What do I look for that indicates this particular project is a âtest projectâ? I donât see a difference between the way FTA-EasyActivate is using SonarQube and FTA-AdopterDllSource. How do I tell the analyzer that FTA-EasyActivate is not a âtest projectâ? Do I add something to the bottom of the SonarQubeAnalysisConfig.xml for FTA-EasyActivate such as:
<PropertyGroup>
<!-- Project is not a test project -->
<SonarQubeTestProject>false</SonarQubeTestProject>
</PropertyGroup>
I tried:
SonarScanner.MSBuild.exe begin /k:âFTA-EasyActivateâ /d:sonar.host.url=âhttp://localhost:9000â /d:sonar.login="d66c0714fc4765e939a2fa6ed2c65b2d25be1416â /d:sonar.cfamily.build-wrapper-output=âbw_outputâ /d:sonar.dotnet.excludeTestProjects=false
I have been running the three commands (begin, build and end) as listed above.
The outputs of the three commands are in the attached .zip file (âBeginStep.outâ, âBuildStep.outâ and âEndStep.outâ) SonarQubeEasyActivateIssue.zip (6.8 KB)
.