Sonarscanner MSBuild issue on .Net framework

Version of SonarQube
Community Edition Version 6.7.4

Version of Sonar-Scanner-MSBuild:

Build environment
Windows 10
MSBuild.exe from Visual Studio 2017
.Net Framework .4.5

I am using the Sonar Scanner for MSBuild to analyze a C# project.

I try to following command from root folder of my project.

SonarScanner.MSBuild.exe begin /k:"test" /d:sonar.verbose=true

Here i get this error and .Net framework installation dialog.

Here are the error i got.
Sonarscanner try to download .Net framework 3.5. But i have already installed .Net framework 4.5.

This is often an indication that other memory is corrupt.

Powereason 68466921 NativeBridgel (Char , String ) at Powereason_ 68466921 Trampoline 68466921 (Uri) at System.Net.WebClient. DownloadString (Uri address) at Sonar Scanner.MSBuild. Preprocessor. Sonar WebService.<>e DisplayClass 15 0.<Download ServerVersion>b 0 () at Sonar Scanner.MSBuild. PreProcessor. Sonar WebService. logExceptions [T] (Func`1 op, String url, Action 1 onError) at at Sonar Scanner.MSBuild. Preprocessor. Sonar WebService. Download Server Version () Sonar Scanner.MSBuild. Preprocessor. Sonar WebService. GetServerVersion (). at Sonar Scanner.MSBuild. Preprocessor. Sonar WebService. Get Properties (String projectKey, String project Branch) at SonarScanner.MSBuild.PreProcessor.TeamBuild PreProcessor.FetchArgumentsAndRulesets (I SonarQube Server Process Args args, TeamBuild settings settings, IDictionary. 2& serverSettings, List 1& analyzersSettings) at SonarScanner.MSBuild.PreProcessor.TeamBuild PreProcessor.DoExecute (Process Args localSettings) at Sonar Scanner.MSBuild. Bootstrapper Class. PreProcessor () server,]

at SonarScanner.MSBuild.BootstrapperClass.Execute () at Sonar Scanner.MSBuild. Program Execute(String[] args, I Logger logger) at SonarScanner. MSBuild. Program.Main(String[] args)```


first of all, please use a supported version of SonarQube - at least 7.9. We don’t support 6.7 anymore.

the minimal requirements from SonarScanner for MSBuild are


    At least the minimal version of Java supported by your SonarQube server

    The SDK corresponding to your build system:
        .NET Framework v4.6+ - either Build Tools for Visual Studio 2015 Update 3 or the Build Tools for Visual Studio 2017

also we suggest to use the latest scanner for msbuild


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.