sonar-scanner-msbuild-2.2.0.24 - End step fails

1,259 views
Skip to first unread message

Ibra Wane Ba

unread,
Feb 10, 2017, 6:47:54 AM2/10/17
to SonarQube
Hi,

I do C# project analysis with sonar-scanner-msbuild-2.2.0.24 from TeamCity. Two first steps (Begin and Compilation) are OK but I am facing following issue dureing the "end" step :

[11:41:25][Step 4/4] The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
[11:41:25][Step 4/4] Possible causes:
[11:41:25][Step 4/4] 1. The project has not been built - the project must be built in between the begin and end steps
[11:41:25][Step 4/4] 2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 12.0 upwards are supported
[11:41:25][Step 4/4] 3. The begin, build or end steps have not all been launched from the same folder
[11:41:25][Step 4/4] Generation of the sonar-properties file failed. Unable to complete SonarQube analysis.
[11:41:25][Step 4/4] 11:41:25.899 Creating a summary markdown file...
[11:41:25][Step 4/4] 11:41:25.9 Post-processing failed. Exit code: 1
[11:41:25][Step 4/4] Process exited with code 0
[11:41:25]Publishing internal artifacts

Could you please advice ?

Thanks and Regards,
Ibra

G. Ann Campbell

unread,
Feb 10, 2017, 4:02:22 PM2/10/17
to SonarQube
Hi Ibra,

The crux of the matter is here:

2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 12.0 upwards are supported

I'm guessing you're using some version < MSBuild 12.0. Even support of that version is deprecated, and will disappear "soon".

The page in the docs on compatibility in .NET analyses includes a link to a page about targeting older versions of the .NET Framework than you're building with. So presumably you could upgrade MSBuild and target the 
version you need for compile - altho I'm certainly no MS expert.


Ann

Ibra Wane Ba

unread,
Feb 13, 2017, 5:19:50 AM2/13/17
to SonarQube
Hi,

yes I am using C:\Windows\Microsoft.Net\Framework\v4.0.30319\MSBuild.exe to compile. May be I have to install and use 14.0 version of msbuild. Will try it. 

Many thanks.

Regards,
Ibra

pv.sr...@gmail.com

unread,
Oct 27, 2017, 12:36:08 PM10/27/17
to SonarQube
Similar Issue even though I'm using latest version of TFS(MS Build Version latest)  Could you please advice 
Reply all
Reply to author
Forward
0 new messages