1

When using SonarScanner against a local source, following the suggested manual recipe for classic .NET and MSBuild, I find the following error (look at the bottom line):

SonarScanner for MSBuild 5.5.3
Using the .NET Framework version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories...
11:30:19.134  Updating build integration targets...
11:30:23.344  Failed to request and parse 'http://localhost:9000/api/server/version': An error occurred while sending the request.

What's wrong? How to resolve this?

1 Answers1

0

It has worked for me: I am a beginner, so I didn't know - and the suggested manual recipe doesn't mention it - that local mode requires a running SonarQube instance, working on this particular endpoint.

So before you run SonarScanner locally, you need to have a local SonarQube server, at least with the default configuration of SonnarScanner.

How to install SonarQube locally? Here is the instruction: Install the Server | SonarQube Docs.