簡體   English   中英

為什么用於MSBuild的SonarQube掃描儀不能與MSBuild 15.0一起使用?

[英]Why SonarQube Scanner for MSBuild does not work with MSBuild 15.0?

我將Visual Studio從2015年升級到2017年。構建過程現在使用MSBuild 15.0,因此我可以使用C#7。

我安裝了最新版本6.3的SonarQube服務器,並使用最新版本的C#scanner 2.2.0.24。

我正在嘗試從我的解決方案所在的文件夾中分析我的代碼:

  1. 運行SonarQube.Scanner.MSBuild.exe begin /key:"myproject"

     SonarQube Scanner for MSBuild 2.2 Default properties file was found at C:\\myfolder\\SonarQube.Analysis.xml Loading analysis properties from C:\\myfolder\\SonarQube.Analysis.xml Pre-processing started. Preparing working directories... SonarQube Scanner for MSBuild 2.2 11:21:18.714 Updating build integration targets... 11:21:18.735 Fetching analysis configuration settings... 11:21:19.341 Generating rulesets... 11:21:19.39 Provisioning analyzer assemblies for cs... 11:21:19.392 Installing required Roslyn analyzers... 11:21:19.435 Pre-processing succeeded. 
  2. 運行MSBuild版本15.1.548.43366。

     ... Build succeeded. 0 Warning(s) 0 Error(s) 
  3. 運行SonarQube.Scanner.MSBuild.exe end

     SonarQube Scanner for MSBuild 2.2 Default properties file was found at C:\\myfolder\\SonarQube.Analysis.xml Loading analysis properties from C:\\myfolder\\SonarQube.Analysis.xml Post-processing started. SonarQube Scanner for MSBuild 2.2 The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects. Possible causes: 1. The project has not been built - the project must be built in between the begin and end steps 2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 12.0 upwards are supported 3. The begin, build or end steps have not all been launched from the same folder Generation of the sonar-properties file failed. Unable to complete SonarQube analysis. 11:22:06.162 Creating a summary markdown file... 11:22:06.167 Post-processing failed. Exit code: 1 

我無法弄清楚它失敗的原因。

c#sonarqube掃描儀2.2是否支持MSBuild 15.0?

用於MSBuild 2.2的SonarQube掃描儀不支持MSBuild 15。

好消息是我們即將發布用於修復此錯誤的MSERild掃描程序的2.3版本。 您可以在錯誤票SONARMSBRU-288上閱讀更多信息。

該版本將於2017年4月上半月發布。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM