简体   繁体   中英

C# Multiple Solution file support for SONARQube

I am using latest version of SONAR Qube and i want to know if it's possible to configure TWO Solution Files as part of Single sonar-project.properties.

sonar.dotnet.visualstudio.solution.file=project1.sln

sonar.dotnet.visualstudio.solution.file=project2.sln

Can someone help me find out the configuration details how to do it so i can configure it for my Windows based service project1 and Web project as project2 here?

Thanks.

The answer is no because :

  1. There is only one supported and accurate way to analyze a Visual Studio solution: by using the SonarQube Scanner for MSBuild
  2. And this SonarQube Scanner for MSBuild has not been built to support the merge/aggregation of several Visual Studio solutions. One Visual Studio solution -> one project in SonarQube.

You should use the sonarqube scanner for MSBuild to analyze the solutions. Here is the documentation: http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+MSBuild#AnalyzingwithSonarQubeScannerforMSBuild-msbuildcompat

Between the begin and end step you could build your two solutions

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM