简体   繁体   English

SONARQube 的 C# 多解决方案文件支持

[英]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 Qube,我想知道是否可以将两个解决方案文件配置为 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?有人可以帮我找出配置细节如何做到这一点,以便我可以在此处为我的基于 Windows 的服务项目 1 和 Web 项目配置它作为项目 2 吗?

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只有一种支持且准确的方法来分析 Visual Studio 解决方案:使用 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.并且此用于 MSBuild 的 SonarQube 扫描仪尚未构建为支持多个 Visual Studio 解决方案的合并/聚合。 One Visual Studio solution -> one project in SonarQube.一个 Visual Studio 解决方案 -> SonarQube 中的一个项目。

You should use the sonarqube scanner for MSBuild to analyze the solutions.您应该使用 MSBuild 的 sonarqube 扫描仪来分析解决方案。 Here is the documentation: http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+MSBuild#AnalyzingwithSonarQubeScannerforMSBuild-msbuildcompat这是文档: 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在开始和结束步骤之间,您可以构建两个解决方案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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