I am new to SonarQube and am having difficulties getting started. I was able to get this up and running but trying to get SonarQube to read my C# Project is a little confusing.
I am trying to install the SonarScanner for MSBuild for .NET Framework or .NET Core, however, the documentation says “Expand the downloaded file into the directory of your choice”
The issue is I was not prompted to download anything. Is this referring to my SonarQube installation?
It’s not clear to me which download button you mean.
Did you download a scanner from the grey block at the top of the documentation page?
(Just FYI, your localhost docs link isn’t going to work for people who don’t have a copy of SonarQube running locally. So for posterity, here’s the public version of the same docs link: SonarScanner for .NET)
Sorry for the delay in coming back to you. When you click that button, it takes you to a page (with a grey box on top) where you choose what to download.
@ganncamp That’s the issue. The documentation page I am directed to assumes I have already downloaded this MSBuild.
In the first step it says to " Expand the downloaded file into the directory of your choice. We’ll refer to it as $install_directory in the next steps."
Because nothing downloaded locally, I do not have anything to “Expand”. Unless I am doing this all wrong?
Please have someone look at it because I’m getting errors in the Chrome console:
http://10.250.0.9:9000/images/info.svg Failed to load resource: the server responded with a status of 404 ()
http://10.250.0.9:9000/images/exclamation.svg Failed to load resource: the server responded with a status of 404 ()
http://10.250.0.9:9000/documentation/analysis/scan/sonarscanner-for-msbuild/ Access to fetch at 'https://update.sonarsource.org/scannermsbuild.json' from origin 'http://10.250.0.9:9000' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://docs.sonarqube.org' that is not equal to the supplied origin. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
https://update.sonarsource.org/scannermsbuild.json Failed to load resource: net::ERR_FAILED
The build version of the SonarQube community server I’m testing on is 8.8.0.42792.
In fact, we’re aware of this. It was caused by some changes we made internally to beef up security. For the record, we’re going to drop this in future versions (SONAR-14725). It’s not clear to me there will be a fix for embedded documentation. Fortunately, you have access from the online docs.
I’ve installed .NET Core Global Tool .
…but cannot find <INSTALL_DIRECTORY>/SonarQube.Analysis.xml on Linux as described in documentation. Should it be created by me or am I missing something?