aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-docs
diff options
context:
space:
mode:
authorJoe Tingsanchali <joe.tingsanchali@sonarsource.com>2021-02-26 15:59:07 -0600
committersonartech <sonartech@sonarsource.com>2021-03-04 20:12:48 +0000
commit41d439e69840c3ddb13b321399f9047536f6a006 (patch)
tree34dbc671655bd378a536a20ec994d2e3f34a3b3c /server/sonar-docs
parenta7608223ed0fe1595efcea2210623ac5bd770ec4 (diff)
downloadsonarqube-41d439e69840c3ddb13b321399f9047536f6a006.tar.gz
sonarqube-41d439e69840c3ddb13b321399f9047536f6a006.zip
DOCS Add table for sonar scanner for .NET flavor matched to its specific invocation
Diffstat (limited to 'server/sonar-docs')
-rw-r--r--server/sonar-docs/src/pages/analysis/scan/sonarscanner-for-msbuild.md14
1 files changed, 13 insertions, 1 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 a238feabeb1..35e03b72422 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
@@ -77,6 +77,8 @@ The _--version_ argument is optional. If it is omitted the latest version will b
There are two versions of the SonarScanner for .NET. In the following commands, you need to pass an [authentication token](/user-guide/user-token/) using the `sonar.login` property.
+### "Classic" .NET Framework Invocation
+
The first version is based on the "classic" .NET Framework. To use it, execute the following commands from the root folder of your project:
```
@@ -85,7 +87,9 @@ MSBuild.exe <path to solution.sln> /t:Rebuild
SonarScanner.MSBuild.exe end /d:sonar.login="myAuthenticationToken"
```
-Note: On Mac OS or Linux, you can also use `mono <path to SonarScanner.MSBuild.exe>`.
+Note: On macOS or Linux, you can also use `mono <path to SonarScanner.MSBuild.exe>`.
+
+### .NET Core and .NET Core Global Tool Invocation
The second version is based on .NET Core which has a very similar usage:
@@ -105,6 +109,14 @@ dotnet build <path to solution.sln>
dotnet sonarscanner end /d:sonar.login="myAuthenticationToken"
```
+In summary, the invocation of the SonarScanner for .NET will depend on the scanner flavor:
+
+ Scanner Flavor | Invocation
+ --- | ---
+ .NET 5 | `dotnet <path to SonarScanner.MSBuild.dll>` etc.
+ .NET Core Global Tool | `dotnet sonarscanner begin` etc.
+ .NET Core 2.0+ | `dotnet <path to SonarScanner.MSBuild.dll>` etc.
+ .NET Framework 4.6+|`SonarScanner.MSBuild.exe begin` etc.
Notes: