Nino
(Rendra)
January 6, 2021, 6:47am
1
Must-share information (formatted with Markdown ):
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
what are you trying to achieve
what have you tried so far to achieve this
Whats the problem this? i am using sonarqube 8.6 with project .net 46
Joe
(Joe)
January 6, 2021, 6:55am
2
Hi @Nino ,
Welcome to SonarSource community!
Are you behind a corporate proxy? You may need to add proxy config as discussed here: Advanced Topics (scroll down to Using SonarScanner for .NET with a Proxy ).
It will look something like this: SONAR_SCANNER_OPTS=-Dhttps.proxyHost=xxx -Dhttps.proxyPort=xxxx
See also: Run SonarCloud Analysis through corporate proxy
Give that a try and see how that works.
Joe
Nino
(Rendra)
January 6, 2021, 7:00am
3
Hi @Joe
how does it work using
SONAR_SCANNER_OPTS?
Joe
(Joe)
January 6, 2021, 7:05am
4
You need to set environment variable SONAR_SCANNER_OPTS
like so:
C:\Windows\system32>set SONAR_SCANNER_OPTS=-Dhttps.proxyHost=xxx -Dhttps.proxyPort=xxx
C:\Windows\system32>echo %SONAR_SCANNER_OPTS%
-Dhttp.proxyHost=yourProxyHost -Dhttps.proxyPort=yourProxyPort
Then run your Sonar Scanner for MSBuild.
Nino
(Rendra)
January 6, 2021, 7:53am
5
what should i do after this?
Joe
(Joe)
January 7, 2021, 7:57am
6
Now run the SonarScanner.MSBuild.exe command like you did in the first screenshot of your first post in this thread.
Joe
(Joe)
January 7, 2021, 3:44pm
8
Hi @Nino ,
Please read on how to use SonarScanner for .NET . You need to specify the path to the project or solution file. in the dotnet build
step.
Joe