From 6cfc9d4ab2577510d17ddcd7011f909bbb65b03d Mon Sep 17 00:00:00 2001 From: mickael-caro-sonarsource <50556955+mickael-caro-sonarsource@users.noreply.github.com> Date: Tue, 3 Sep 2019 16:03:37 +0200 Subject: [PATCH] SONAR-12439 - Updated Scanner for MSBuild documentation (4.7.0) (#2053) --- .../analysis/scan/sonarscanner-for-msbuild.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/server/sonar-docs/src/pages/analysis/scan/sonarscanner-for-msbuild.md b/server/sonar-docs/src/pages/analysis/scan/sonarscanner-for-msbuild.md index 6b9ab6833d5..65f958dcdc4 100644 --- a/server/sonar-docs/src/pages/analysis/scan/sonarscanner-for-msbuild.md +++ b/server/sonar-docs/src/pages/analysis/scan/sonarscanner-for-msbuild.md @@ -4,11 +4,11 @@ url: /analysis/scan/sonarscanner-for-msbuild/ --- [[info]] -| **Download SonarScanner for MSBuild 4.6.2.2108** - Compatible with SonarQube 6.7+ (LTS) +| **Download SonarScanner for MSBuild 4.7.0.2295** - Compatible with SonarQube 6.7+ (LTS) | By [SonarSource](https://www.sonarsource.com/) – GNU LGPL 3 – [Issue Tracker](https://github.com/SonarSource/sonar-scanner-msbuild/issues) – [Source](https://github.com/SonarSource/sonar-scanner-msbuild) | -| [.NET Framework 4.6+](https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/4.6.2.2108/sonar-scanner-msbuild-4.6.2.2108-net46.zip) | -| [.NET Core 2.0+](https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/4.6.2.2108/sonar-scanner-msbuild-4.6.2.2108-netcoreapp2.0.zip) | +| [.NET Framework 4.6+](https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/4.7.0.2295/sonar-scanner-msbuild-4.7.0.2295-net46.zip) | +| [.NET Core 2.0+](https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/4.7.0.2295/sonar-scanner-msbuild-4.7.0.2295-netcoreapp2.0.zip) | | [.NET Core Global Tool](https://www.nuget.org/packages/dotnet-sonarscanner) @@ -45,18 +45,22 @@ Consider setting file system permissions to restrict access to this file.: ### Installation of the SonarScanner for MSBuild .NET Core Global Tool ``` -dotnet tool install --global dotnet-sonarscanner --version 4.3.1 +dotnet tool install --global dotnet-sonarscanner --version 4.7.0 ``` The _--version_ argument is optional. If it is omitted the latest version will be installed. ### On Linux/OSX, if your SonarQube server is secured: 1. Copy the server's CA certs to `/usr/local/share/ca-certificates` -1. Run `sudo update-ca-certificates` +2. Run `sudo update-ca-certificates` ## Use There are two versions of the SonarScanner for MSBuild. +[[info]] +| Since version 4.7.0 of the Scanner, you can invoke it using arguments with both dash (-) or forward-slash (/) separators. +| Example : SonarScanner.MSBuild.exe begin /k:"project-key" or SonarScanner.MSBuild.exe begin -k:"project-key" will work. + The first version is based on the “classic” .NET Framework. To use it, execute the following commands from the root folder of your project: ``` SonarScanner.MSBuild.exe begin /k:"project-key" /d:sonar.organization="" /d:sonar.login="" -- 2.39.5