No analysis done when using sonar-scanner-msbuild 4.3.1.1.372 on simple c# project

I am using the free community edition. First of all, how to create a new account so I can create a ticket here:https://jira.sonarsource.com/servicedesk/customer/user/login?destination=portals?
I am using sonarqube-72. When I try to run an analysis using sonar.scanner.msbuild.exe (using the end parameter) on a simple C# project, it doesn’t analyze any files. I get three warnings when I run the analysis:
1.WARNING: WARN: SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.scm.provider to define SCM of your project.
2.WARNING: WARN: Property missing: ‘sonar.cs.analyzer.projectOutPaths’. No protobuf files will be loaded for this project.
3.WARNING: WARN: No roslyn issues report not found for this project.

Also, when I try to analyze a vb project and place my plugin in C:\sonarqube-7.2\extensions\plugins the server will not run. When I try to install it in the UI via MarketPlace, I don’t see how to do it. When I search for all plug-ins it only shows all that are installed. How to install via marketplace.

Multiple issues here. I’d appreciate any help I can get.

Hi,

First, you say your analysis fails when you use the end task. Are you also using the begin task? before your compile? you are compiling, right? For reference, here are the docs for using that scanner.

Second, VB analysis is only available as part of commercial editions, so it’s expected that server startup will fail when you install that unlicensed plugin. And starting from 7.2 all commercial features (including analyzers) are bundled with the editions, so it’s also expected that you won’t be able to install this analyzer through the marketplace.

Ann

P.S. For future reference, it’s easier in the long run if you start a thread per topic (analysis vs the VB analyzer).

 


EDIT 15 Oct. 18

Starting with SonarQube 7.4, VB.NET analysis is part of the Community Edition

Ann - Thanks so much for the reply, and that explains why I’m having the issues with VB.NET projects (I need a commercial edition). However, I should be able to run analysis on a C# project with only the community edition, correct? The C# plugin is located in the plugins folder. Yes, I am using the begin task before I compile and also compile according to the docs you mention, but I am getting those warnings I mentioned earlier. It does create a .sonarqube folder in the same folder as my solution, with the bin, conf, and out folders inside the .sonarqube folder, but something is wrong as no analysis is performed. Any advice would be great. Thanks

Hi,

Are those three warnings all you get in the log?

Ann

Ann - please see log below. The last time I ran, I got 1 warning and 2 errors. I don’t need to set a ‘report’ parameter, do I?

C:\Users\mstack\source\repos\CSharpSonarTest>C:\sonar-scanner-msbuild-4.3.1.1372\sonarscanner.msbuild.exe end
SonarScanner for MSBuild 4.3.1
Using the .NET Framework version of the Scanner for MSBuild
Default properties file was found at C:\sonar-scanner-msbuild-4.3.1.1372\SonarQube.Analysis.xml
Loading analysis properties from C:\sonar-scanner-msbuild-4.3.1.1372\SonarQube.Analysis.xml
Post-processing started.
SONAR_SCANNER_OPTS is not configured. Setting it to the default value of -Xmx1024m
Calling the SonarQube Scanner...
INFO: Scanner configuration file: C:\sonar-scanner-msbuild-4.3.1.1372\sonar-scanner-3.2.0.1227\bin\..\conf\sonar-scanner
.properties
INFO: Project root configuration file: C:\Users\mstack\source\repos\CSharpSonarTest\.sonarqube\out\sonar-project.propert
ies
INFO: SonarQube Scanner 3.2.0.1227
INFO: Java 1.8.0_161 Oracle Corporation (64-bit)
INFO: Windows 7 6.1 amd64
INFO: SONAR_SCANNER_OPTS=-Xmx1024m
INFO: User cache: C:\Users\mstack\.sonar\cache
INFO: SonarQube server 6.7.4
INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
INFO: Publish mode
INFO: Load global settings
INFO: Load global settings (done) | time=101ms
INFO: Server id: AWP6H1wZA4zE5Xk3id0f
INFO: User cache: C:\Users\mstack\.sonar\cache
INFO: Load plugins index
INFO: Load plugins index (done) | time=71ms
INFO: Process project properties
INFO: Load project repositories
INFO: Load project repositories (done) | time=12ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=35ms
INFO: Load active rules
INFO: Load active rules (done) | time=661ms
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=46ms
INFO: Project key: csharpproj
INFO: -------------  Scan CSharpSonarTest
WARNING: WARN: SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.scm.p
rovider to define SCM of your project.
INFO: Load server rules
INFO: Load server rules (done) | time=154ms
INFO: Base dir: C:\Users\mstack\source\repos\CSharpSonarTest\CSharpSonarTest
INFO: Working dir: C:\Users\mstack\source\repos\CSharpSonarTest\.sonarqube\out\.sonar\csharpproj_csharpproj_B26DB222-D4B
E-4279-A36A-97704B5CAD73
INFO: Source paths: Program.cs, Properties/AssemblyInfo.cs, App.config
INFO: Source encoding: UTF-8, default locale: en_US
INFO: Index files
INFO: Analyzer working directory contains 5 .pb file(s)
INFO: 3 files indexed
INFO: Quality profile for cs: Sonar way
INFO: Sensor C# [csharp]
INFO: Importing analysis results from C:\Users\mstack\source\repos\CSharpSonarTest\.sonarqube\out\0\output-cs
INFO: Importing Roslyn report
INFO: Sensor C# [csharp] (done) | time=126ms
INFO: Sensor SonarJavaXmlFileSensor [java]
INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=0ms
INFO: Sensor Analyzer for "php.ini" files [php]
INFO: Sensor Analyzer for "php.ini" files [php] (done) | time=5ms
INFO: No SCM system was detected. You can use the 'sonar.scm.provider' property to explicitly specify it.
INFO: -------------  Scan csharpproj
INFO: Base dir: C:\Users\mstack\source\repos\CSharpSonarTest\CSharpSonarTest
INFO: Working dir: C:\Users\mstack\source\repos\CSharpSonarTest\.sonarqube\out\.sonar
INFO: Source encoding: windows-1252, default locale: en_US
INFO: Index files
INFO: 0 files indexed
INFO: Sensor SonarJavaXmlFileSensor [java]
INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=0ms
INFO: Sensor Analyzer for "php.ini" files [php]
INFO: Sensor Analyzer for "php.ini" files [php] (done) | time=0ms
INFO: Sensor C# Tests Coverage Report Import [csharp]
INFO: Sensor C# Tests Coverage Report Import [csharp] (done) | time=0ms
INFO: Sensor [Deprecated] C# Integration Tests Coverage Report Import [csharp]
INFO: Sensor [Deprecated] C# Integration Tests Coverage Report Import [csharp] (done) | time=0ms
INFO: Sensor C# Unit Test Results Import [csharp]
INFO: Sensor C# Unit Test Results Import [csharp] (done) | time=0ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=24ms
INFO: Sensor CPD Block Indexer
INFO: Sensor CPD Block Indexer (done) | time=0ms
INFO: No SCM system was detected. You can use the 'sonar.scm.provider' property to explicitly specify it.
INFO: Calculating CPD for 2 files
INFO: CPD calculation finished
INFO: Analysis report generated in 110ms, dir size=27 KB
INFO: Analysis reports compressed in 29ms, zip size=10 KB
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 7.883s
INFO: Final Memory: 11M/522M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: The 'report' parameter is missing
ERROR:
The SonarQube Scanner did not complete successfully
08:14:10.783  Creating a summary markdown file...
08:14:10.793  Post-processing failed. Exit code: 1

Here is latest analysis log - no errors but no analysis done.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\mstack>cd C:\Users\mstack\source\repos\CSharpSonarTest2

C:\Users\mstack\source\repos\CSharpSonarTest2>
C:\Users\mstack\source\repos\CSharpSonarTest2>SonarScanner.MSBuild.exe begin /k:"ProvisionTest" /n:"CSharpSonarTest" /d:
sonar.verbose=true
SonarScanner for MSBuild 4.3.1
Using the .NET Framework version of the Scanner for MSBuild
Default properties file was found at C:\sonar-scanner-msbuild-4.3.1.1372\SonarQube.Analysis.xml
Loading analysis properties from C:\sonar-scanner-msbuild-4.3.1.1372\SonarQube.Analysis.xml
sonar.verbose=true was specified - setting the log verbosity to 'Debug'
Pre-processing started.
Preparing working directories...
Using environment variables to determine the download directory...
Creating directory: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube
09:21:22.767  09:21:22.752  Loading analysis properties from C:\sonar-scanner-msbuild-4.3.1.1372\SonarQube.Analysis.xml
09:21:22.767  09:21:22.767  sonar.verbose=true was specified - setting the log verbosity to 'Debug'
09:21:22.767  Updating build integration targets...
09:21:22.799  Installed SonarQube.Integration.ImportBefore.targets to C:\Users\mstack\AppData\Local\Microsoft\MSBuild\4.
0\Microsoft.Common.targets\ImportBefore
09:21:22.799  Installed SonarQube.Integration.ImportBefore.targets to C:\Users\mstack\AppData\Local\Microsoft\MSBuild\10
.0\Microsoft.Common.targets\ImportBefore
09:21:22.799  Installed SonarQube.Integration.ImportBefore.targets to C:\Users\mstack\AppData\Local\Microsoft\MSBuild\11
.0\Microsoft.Common.targets\ImportBefore
09:21:22.799  Installed SonarQube.Integration.ImportBefore.targets to C:\Users\mstack\AppData\Local\Microsoft\MSBuild\12
.0\Microsoft.Common.targets\ImportBefore
09:21:22.814  Installed SonarQube.Integration.ImportBefore.targets to C:\Users\mstack\AppData\Local\Microsoft\MSBuild\14
.0\Microsoft.Common.targets\ImportBefore
09:21:22.814  Installed SonarQube.Integration.ImportBefore.targets to C:\Users\mstack\AppData\Local\Microsoft\MSBuild\15
.0\Microsoft.Common.targets\ImportBefore
09:21:22.845  Installed SonarQube.Integration.targets to C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\bin\ta
rgets
09:21:22.845  Creating config and output folders...
09:21:22.845  Creating directory: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\conf
09:21:22.845  Creating directory: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\out
09:21:22.861  Fetching analysis configuration settings...
09:21:22.861  Downloading from http://localhost:9000/api/server/version...
09:21:23.751  Fetching properties for project 'ProvisionTest' from http://localhost:9000/api/settings/values?component=P
rovisionTest...
09:21:23.751  Downloading from http://localhost:9000/api/settings/values?component=ProvisionTest...
09:21:24.503  Downloading from http://localhost:9000/api/languages/list...
09:21:24.518  Fetching quality profile for project 'ProvisionTest' from http://localhost:9000/api/qualityprofiles/search
?projectKey=ProvisionTest...
09:21:24.518  Downloading from http://localhost:9000/api/qualityprofiles/search?projectKey=ProvisionTest...
09:21:24.612  Fetching active rules for quality profile 'AWQY1tUeg0uUlh1IQBNF' from http://localhost:9000/api/rules/sear
ch?f=repo,name,severity,lang,internalKey,templateKey,params,actives&ps=500&activation=true&qprofile=AWQY1tUeg0uUlh1IQBNF
&p=1...
09:21:24.612  Downloading from http://localhost:9000/api/rules/search?f=repo,name,severity,lang,internalKey,templateKey,
params,actives&ps=500&activation=true&qprofile=AWQY1tUeg0uUlh1IQBNF&p=1...
09:21:25.33  Fetching rules not active in quality profile 'AWQY1tUeg0uUlh1IQBNF' for language 'cs' from http://localhost
:9000/api/rules/search?f=internalKey&ps=500&activation=false&qprofile=AWQY1tUeg0uUlh1IQBNF&p=1&languages=cs...
09:21:25.345  Downloading from http://localhost:9000/api/rules/search?f=internalKey&ps=500&activation=false&qprofile=AWQ
Y1tUeg0uUlh1IQBNF&p=1&languages=cs...
09:21:25.454  Local analyzer cache: C:\Users\mstack\AppData\Local\Temp\.sonarqube\resources
09:21:25.486  Writing Roslyn generated ruleset to C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\conf\SonarQub
eRoslyn-cs.ruleset...
09:21:25.501  Writing Roslyn analyzer additional file to C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\conf\c
s\SonarLint.xml...
09:21:25.517  Provisioning analyzer assemblies for cs...
09:21:25.517  Installing required Roslyn analyzers...
09:21:25.532  Processing plugin: csharp version 7.2.0.5463
09:21:25.688  Cache hit: using plugin files from C:\Users\mstack\AppData\Local\Temp\.sonarqube\resources\1
09:21:25.72  Pre-processing succeeded.

C:\Users\mstack\source\repos\CSharpSonarTest2>MSBuild.exe
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 7/2/2018 9:22:35 AM.
Project "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|Any CPU".
Project "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest.sln" (1) is building "C:\Users\mstack\source\rep
os\CSharpSonarTest2\CSharpSonarTest\CSharpSonarTest.csproj" (2) on node 1 (default targets).
GenerateBindingRedirects:
  No suggested binding redirects from ResolveAssemblyReferences.
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the i
nput files.
CreateProjectSpecificDirs:
  Creating directory "C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\conf\0".
CoreCompile:
Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
_CopyAppConfigFile:
Skipping target "_CopyAppConfigFile" because all output files are up-to-date with respect to the input files.
CopyFilesToOutputDirectory:
  CSharpSonarTest -> C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest\bin\Debug\CSharpSonarTest.exe
IncrementalClean:
  Deleting file "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest\obj\Debug\CSharpSonarTest.csprojAssembly
  Reference.cache".
  Deleting file "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest\obj\Debug\CSharpSonarTest.csproj.CoreCom
  pileInputs.cache".
Done Building Project "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest\CSharpSonarTest.csproj" (default t
argets).

Done Building Project "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest.sln" (default targets).


Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:01.01

C:\Users\mstack\source\repos\CSharpSonarTest2>SonarScanner.MSBuild.exe end
SonarScanner for MSBuild 4.3.1
Using the .NET Framework version of the Scanner for MSBuild
Default properties file was found at C:\sonar-scanner-msbuild-4.3.1.1372\SonarQube.Analysis.xml
Loading analysis properties from C:\sonar-scanner-msbuild-4.3.1.1372\SonarQube.Analysis.xml
Post-processing started.
09:22:52.713  Loading the SonarQube analysis config from C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\conf\S
onarQubeAnalysisConfig.xml
09:22:52.728  Not running under TeamBuild
09:22:52.728  Analysis base directory: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube
Build directory:
Bin directory: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\bin
Config directory: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\conf
Output directory: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\out
Config file: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\conf\SonarQubeAnalysisConfig.xml
Generating SonarQube project properties file to C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\out\sonar-proje
ct.properties
Setting analysis property: sonar.visualstudio.enable=false
Using longest common projects root path as project base directory: 'C:\Users\mstack\source\repos\CSharpSonarTest2\CSharp
SonarTest'.
Dumping content of sonar-project.properties
------------------------------------------------------------------------
sonar.projectKey=ProvisionTest
sonar.projectName=CSharpSonarTest
sonar.working.directory=C:\\Users\\mstack\\source\\repos\\CSharpSonarTest2\\.sonarqube\\out\\.sonar
sonar.projectBaseDir=C:\\Users\\mstack\\source\\repos\\CSharpSonarTest2\\CSharpSonarTest

B26DB222-D4BE-4279-A36A-97704B5CAD73.sonar.projectKey=ProvisionTest:B26DB222-D4BE-4279-A36A-97704B5CAD73
B26DB222-D4BE-4279-A36A-97704B5CAD73.sonar.projectName=CSharpSonarTest
B26DB222-D4BE-4279-A36A-97704B5CAD73.sonar.projectBaseDir=C:\\Users\\mstack\\source\\repos\\CSharpSonarTest2\\CSharpSona
rTest
B26DB222-D4BE-4279-A36A-97704B5CAD73.sonar.sourceEncoding=utf-8
B26DB222-D4BE-4279-A36A-97704B5CAD73.sonar.sources=
B26DB222-D4BE-4279-A36A-97704B5CAD73.sonar.tests=\
"C:\\Users\\mstack\\source\\repos\\CSharpSonarTest2\\CSharpSonarTest\\MattTest.cs",\
"C:\\Users\\mstack\\source\\repos\\CSharpSonarTest2\\CSharpSonarTest\\Program.cs",\
"C:\\Users\\mstack\\source\\repos\\CSharpSonarTest2\\CSharpSonarTest\\Properties\\AssemblyInfo.cs",\
"C:\\Users\\mstack\\source\\repos\\CSharpSonarTest2\\CSharpSonarTest\\App.config"

sonar.verbose=true
sonar.visualstudio.enable=false

sonar.modules=B26DB222-D4BE-4279-A36A-97704B5CAD73


------------------------------------------------------------------------
Writing processing summary to C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\out\ProjectInfo.log
SONAR_SCANNER_OPTS is not configured. Setting it to the default value of -Xmx1024m
Calling the SonarQube Scanner...
Setting environment variable 'SONAR_SCANNER_OPTS'. Value: -Xmx1024m
Executing file C:\sonar-scanner-msbuild-4.3.1.1372\sonar-scanner-3.2.0.1227\bin\sonar-scanner.bat
  Args: -Dsonar.scanAllFiles=true -Dproject.settings=C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\out\sonar-
project.properties --embedded
  Working directory: C:\Users\mstack\source\repos\CSharpSonarTest2
  Timeout (ms):-1
  Process id: 10928
INFO: Scanner configuration file: C:\sonar-scanner-msbuild-4.3.1.1372\sonar-scanner-3.2.0.1227\bin\..\conf\sonar-scanner
.properties
INFO: Project root configuration file: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\out\sonar-project.proper
ties
09:22:53.899 INFO: SonarQube Scanner 3.2.0.1227
09:22:53.899 INFO: Java 1.8.0_161 Oracle Corporation (64-bit)
09:22:53.899 INFO: Windows 7 6.1 amd64
09:22:53.899 INFO: SONAR_SCANNER_OPTS=-Xmx1024m
09:22:54.117 DEBUG: keyStore is :
09:22:54.117 DEBUG: keyStore type is : jks
09:22:54.117 DEBUG: keyStore provider is :
09:22:54.117 DEBUG: init keystore
09:22:54.117 DEBUG: init keymanager of type SunX509
09:22:55.227 DEBUG: Create: C:\Users\mstack\.sonar\cache
09:22:55.227 INFO: User cache: C:\Users\mstack\.sonar\cache
09:22:55.227 DEBUG: Create: C:\Users\mstack\.sonar\cache\_tmp
09:22:55.227 DEBUG: Extract sonar-scanner-api-batch in temp...
09:22:55.232 DEBUG: Get bootstrap index...
09:22:55.233 DEBUG: Download: http://localhost:9000/batch/index
09:22:55.488 DEBUG: Get bootstrap completed
09:22:55.534 DEBUG: Create isolated classloader...
09:22:55.550 DEBUG: Start temp cleaning...
09:22:55.566 DEBUG: Temp cleaning done
09:22:55.566 DEBUG: Execution getVersion
09:22:55.566 INFO: SonarQube server 7.2.0
09:22:55.566 INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
09:22:55.566 DEBUG: Work directory: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\out\.sonar
09:22:55.566 DEBUG: Execution execute
09:22:56.627 INFO: Publish mode
09:22:56.892 INFO: Load global settings
09:22:56.986 DEBUG: GET 200 http://localhost:9000/api/settings/values.protobuf | time=78ms
09:22:57.032 INFO: Load global settings (done) | time=140ms
09:22:57.048 INFO: Server id: AWQY1pGdg0uUlh1IQAmQ
09:22:57.079 INFO: User cache: C:\Users\mstack\.sonar\cache
09:22:57.393 INFO: Load/download plugins
09:22:57.393 INFO: Load plugins index
09:22:57.409 DEBUG: GET 200 http://localhost:9000/api/plugins/installed | time=16ms
09:22:57.471 INFO: Load plugins index (done) | time=78ms
09:22:57.690 INFO: Load/download plugins (done) | time=297ms
09:22:57.705 DEBUG: API compatibility mode is enabled on plugin TFVC [scmtfvc] (built with API lower than 5.2)
09:22:57.861 DEBUG: Plugins:
09:22:57.861 DEBUG:   * SonarGo 1.1.0.1612 (go)
09:22:57.861 DEBUG:   * Svn 1.7.0.1017 (scmsvn)
09:22:57.861 DEBUG:   * SonarJS 4.1.0.6085 (javascript)
09:22:57.861 DEBUG:   * TFVC 2.1.2 (scmtfvc)
09:22:57.861 DEBUG:   * SonarC# 7.2.0.5463 (csharp)
09:22:57.861 DEBUG:   * SonarJava 5.4.0.14284 (java)
09:22:57.861 DEBUG:   * LDAP 2.2.0.608 (ldap)
09:22:57.861 DEBUG:   * Git 1.4.1.1128 (scmgit)
09:22:57.861 DEBUG:   * SonarFlex 2.4.0.1222 (flex)
09:22:57.861 DEBUG:   * SonarXML 1.5.1.1452 (xml)
09:22:57.861 DEBUG:   * SonarPHP 2.13.0.3107 (php)
09:22:57.861 DEBUG:   * SonarTS 1.7.0.2893 (typescript)
09:22:57.892 INFO: Loaded core extensions:
09:22:58.535 INFO: Process project properties
09:22:58.550 DEBUG: Process project properties (done) | time=15ms
09:22:58.597 INFO: Load project repositories
09:22:58.675 DEBUG: GET 200 http://localhost:9000/batch/project.protobuf?key=ProvisionTest | time=78ms
09:22:58.784 INFO: Load project repositories (done) | time=187ms
09:22:58.878 DEBUG: Available languages:
09:22:58.878 DEBUG:   * Go => "go"
09:22:58.878 DEBUG:   * JavaScript => "js"
09:22:58.878 DEBUG:   * C# => "cs"
09:22:58.878 DEBUG:   * Java => "java"
09:22:58.878 DEBUG:   * Flex => "flex"
09:22:58.878 DEBUG:   * XML => "xml"
09:22:58.878 DEBUG:   * PHP => "php"
09:22:58.878 DEBUG:   * TypeScript => "ts"
09:22:58.893 INFO: Load quality profiles
09:22:58.956 DEBUG: GET 200 http://localhost:9000/api/qualityprofiles/search.protobuf?projectKey=ProvisionTest | time=63
ms
09:22:58.971 INFO: Load quality profiles (done) | time=78ms
09:22:59.003 INFO: Load active rules
09:22:59.190 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templa
teKey,params,actives,createdAt&activation=true&qprofile=AWQY1tUeg0uUlh1IQBNF&p=1&ps=500 | time=187ms
09:22:59.550 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templa
teKey,params,actives,createdAt&activation=true&qprofile=AWQY1tgMg0uUlh1IQBVR&p=1&ps=500 | time=250ms
09:22:59.659 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templa
teKey,params,actives,createdAt&activation=true&qprofile=AWQY1tpOg0uUlh1IQBa8&p=1&ps=500 | time=94ms
09:22:59.706 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templa
teKey,params,actives,createdAt&activation=true&qprofile=AWQY1tvkg0uUlh1IQBbt&p=1&ps=500 | time=32ms
09:22:59.752 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templa
teKey,params,actives,createdAt&activation=true&qprofile=AWQY1txCg0uUlh1IQBcN&p=1&ps=500 | time=46ms
09:22:59.862 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templa
teKey,params,actives,createdAt&activation=true&qprofile=AWQY1t3Ig0uUlh1IQBh-&p=1&ps=500 | time=110ms
09:22:59.940 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templa
teKey,params,actives,createdAt&activation=true&qprofile=AWQY1t8Bg0uUlh1IQBkg&p=1&ps=500 | time=78ms
09:23:00.018 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templa
teKey,params,actives,createdAt&activation=true&qprofile=AWQY1ujFg0uUlh1IQBo2&p=1&ps=500 | time=78ms
09:23:00.049 INFO: Load active rules (done) | time=1046ms
09:23:00.049 INFO: Load metrics repository
09:23:00.064 DEBUG: GET 200 http://localhost:9000/api/metrics/search?f=name,description,direction,qualitative,custom&ps=
500&p=1 | time=15ms
09:23:00.080 INFO: Load metrics repository (done) | time=31ms
09:23:00.127 WARN: SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.s
cm.provider to define SCM of your project.
09:23:00.127 INFO: Project key: ProvisionTest
09:23:00.127 INFO: Project base dir: C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest
09:23:00.142 DEBUG: Start recursive analysis of project modules
09:23:00.142 INFO: -------------  Scan CSharpSonarTest
09:23:00.365 INFO: Load server rules
09:23:00.645 DEBUG: GET 200 http://localhost:9000/api/rules/list.protobuf | time=280ms
09:23:00.677 INFO: Load server rules (done) | time=312ms
09:23:00.723 INFO: Base dir: C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest
09:23:00.739 INFO: Working dir: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\out\.sonar\ProvisionTest_Provis
ionTest_B26DB222-D4BE-4279-A36A-97704B5CAD73
09:23:00.739 INFO: Test paths: MattTest.cs, Program.cs, Properties/AssemblyInfo.cs, App.config
09:23:00.739 INFO: Source encoding: UTF-8, default locale: en_US
09:23:00.895 DEBUG: Declared extensions of language Go were converted to sonar.lang.patterns.go : **/*.go
09:23:00.895 DEBUG: Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : **/*.js,**/*.j
sx,**/*.vue
09:23:00.895 DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs
09:23:00.895 DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav

09:23:00.895 DEBUG: Declared extensions of language Flex were converted to sonar.lang.patterns.flex : **/*.as
09:23:00.895 DEBUG: Declared extensions of language XML were converted to sonar.lang.patterns.xml : **/*.xml,**/*.xsd,**
/*.xsl
09:23:00.895 DEBUG: Declared extensions of language PHP were converted to sonar.lang.patterns.php : **/*.php,**/*.php3,*
*/*.php4,**/*.php5,**/*.phtml,**/*.inc
09:23:00.895 DEBUG: Declared extensions of language TypeScript were converted to sonar.lang.patterns.ts : **/*.ts,**/*.t
sx
09:23:00.911 DEBUG: Initializers :
09:23:00.911 INFO: Index files
09:23:01.035 DEBUG: 'Properties\AssemblyInfo.cs' indexed as test with language 'cs'
09:23:01.035 DEBUG: 'App.config' indexed as test with language 'null'
09:23:01.035 DEBUG: 'MattTest.cs' indexed as test with language 'cs'
09:23:01.051 DEBUG: 'Program.cs' indexed as test with language 'cs'
09:23:01.051 INFO: 4 files indexed
09:23:01.051 INFO: Quality profile for cs: Sonar way
09:23:02.407 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing
09:23:02.407 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing
09:23:02.407 DEBUG: 'Import external issues report' skipped because one of the required properties is missing
09:23:02.453 WARN: Property missing: 'sonar.cs.analyzer.projectOutPaths'. No protobuf files will be loaded for this proj
ect.
09:23:02.453 WARN: No roslyn issues report not found for this project.
09:23:02.422 DEBUG: 'SonarGo' skipped because there is no related file in current project
09:23:02.438 DEBUG: 'Go Unit Test Report' skipped because there is no related file in current project
09:23:02.438 DEBUG: 'Import of go vet issues' skipped because there is no related file in current project
09:23:02.438 DEBUG: 'Import of Golint issues' skipped because there is no related file in current project
09:23:02.438 DEBUG: 'Import of GoMetaLinter issues' skipped because there is no related file in current project
09:23:02.438 DEBUG: 'SonarJS' skipped because there is no related file in current project
09:23:02.438 DEBUG: 'SonarJS Coverage' skipped because there is no related file in current project
09:23:02.438 DEBUG: 'C# Tests Coverage Report Import' skipped because one of the required properties is missing
09:23:02.438 DEBUG: '[Deprecated] C# Integration Tests Coverage Report Import' skipped because one of the required prope
rties is missing
09:23:02.438 DEBUG: 'C# Unit Test Results Import' skipped because one of the required properties is missing
09:23:02.438 DEBUG: 'SurefireSensor' skipped because there is no related file in current project
09:23:02.438 DEBUG: 'JaCoCoSensor' skipped because there is no related file in current project
09:23:02.438 DEBUG: 'JavaSquidSensor' skipped because there is no related file in current project
09:23:02.438 DEBUG: 'Flex' skipped because there is no related file in current project
09:23:02.438 DEBUG: 'Flex Cobertura' skipped because there is no related file in current project
09:23:02.453 DEBUG: 'XML Sensor' skipped because there is no related file in current project
09:23:02.453 DEBUG: 'PHP sensor' skipped because there is no related file in current project
09:23:02.453 DEBUG: 'Analyzer for "php.ini" files' skipped because there is no related file in current project
09:23:02.453 DEBUG: 'Import of TSLint issues' skipped because there is no related file in current project
09:23:02.453 DEBUG: 'Import of ESLint issues' skipped because there is no related file in current project
09:23:02.453 DEBUG: 'SonarTS' skipped because there is no related file in current project
09:23:02.453 DEBUG: 'SonarTS Coverage' skipped because there is no related file in current project
09:23:02.453 DEBUG: Sensors : C# Properties -> SonarJavaXmlFileSensor
09:23:02.453 INFO: Sensor C# Properties [csharp]
09:23:02.453 INFO: Sensor C# Properties [csharp] (done) | time=0ms
09:23:02.469 INFO: Sensor SonarJavaXmlFileSensor [java]
09:23:02.469 INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=0ms
09:23:02.469 INFO: No SCM system was detected. You can use the 'sonar.scm.provider' property to explicitly specify it.
09:23:02.469 INFO: -------------  Scan CSharpSonarTest
09:23:02.485 INFO: Base dir: C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest
09:23:02.485 INFO: Working dir: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\out\.sonar
09:23:02.485 INFO: Source encoding: windows-1252, default locale: en_US
09:23:02.516 DEBUG: Declared extensions of language Go were converted to sonar.lang.patterns.go : **/*.go
09:23:02.516 DEBUG: Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : **/*.js,**/*.j
sx,**/*.vue
09:23:02.516 DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs
09:23:02.516 DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav

09:23:02.516 DEBUG: Declared extensions of language Flex were converted to sonar.lang.patterns.flex : **/*.as
09:23:02.516 DEBUG: Declared extensions of language XML were converted to sonar.lang.patterns.xml : **/*.xml,**/*.xsd,**
/*.xsl
09:23:02.516 DEBUG: Declared extensions of language PHP were converted to sonar.lang.patterns.php : **/*.php,**/*.php3,*
*/*.php4,**/*.php5,**/*.phtml,**/*.inc
09:23:02.516 DEBUG: Declared extensions of language TypeScript were converted to sonar.lang.patterns.ts : **/*.ts,**/*.t
sx
09:23:02.531 DEBUG: Initializers :
09:23:02.531 INFO: Index files
09:23:02.531 INFO: 0 files indexed
09:23:02.625 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing
09:23:02.625 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing
09:23:02.625 DEBUG: 'Import external issues report' skipped because one of the required properties is missing
09:23:02.625 DEBUG: 'SonarGo' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'Go Unit Test Report' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'Import of go vet issues' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'Import of Golint issues' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'Import of GoMetaLinter issues' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'SonarJS' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'SonarJS Coverage' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'C#' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'C# Properties' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'C# Tests Coverage Report Import' skipped because there is no related file in current project
09:23:02.625 DEBUG: '[Deprecated] C# Integration Tests Coverage Report Import' skipped because there is no related file
in current project
09:23:02.625 DEBUG: 'C# Unit Test Results Import' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'SurefireSensor' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'JaCoCoSensor' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'JavaSquidSensor' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'Flex' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'Flex Cobertura' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'XML Sensor' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'PHP sensor' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'Analyzer for "php.ini" files' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'Import of TSLint issues' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'Import of ESLint issues' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'SonarTS' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'SonarTS Coverage' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing
09:23:02.625 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing
09:23:02.625 DEBUG: 'Import external issues report' skipped because one of the required properties is missing
09:23:02.625 DEBUG: 'SonarGo' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'Go Unit Test Report' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'Import of go vet issues' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'Import of Golint issues' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'Import of GoMetaLinter issues' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'SonarJS' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'SonarJS Coverage' skipped because there is no related file in current project
09:23:02.625 DEBUG: 'C# Tests Coverage Report Import' skipped because one of the required properties is missing
09:23:02.625 DEBUG: '[Deprecated] C# Integration Tests Coverage Report Import' skipped because one of the required prope
rties is missing
09:23:02.625 DEBUG: 'C# Unit Test Results Import' skipped because one of the required properties is missing
09:23:02.656 DEBUG: 'SurefireSensor' skipped because there is no related file in current project
09:23:02.656 DEBUG: 'JaCoCoSensor' skipped because there is no related file in current project
09:23:02.656 DEBUG: 'JavaSquidSensor' skipped because there is no related file in current project
09:23:02.656 DEBUG: 'Flex' skipped because there is no related file in current project
09:23:02.656 DEBUG: 'Flex Cobertura' skipped because there is no related file in current project
09:23:02.656 DEBUG: 'XML Sensor' skipped because there is no related file in current project
09:23:02.656 DEBUG: 'PHP sensor' skipped because there is no related file in current project
09:23:02.656 DEBUG: 'Analyzer for "php.ini" files' skipped because there is no related file in current project
09:23:02.656 DEBUG: 'Import of TSLint issues' skipped because there is no related file in current project
09:23:02.656 DEBUG: 'Import of ESLint issues' skipped because there is no related file in current project
09:23:02.703 DEBUG: 'SonarTS' skipped because there is no related file in current project
09:23:02.703 DEBUG: 'SonarTS Coverage' skipped because there is no related file in current project
09:23:02.703 DEBUG: Sensors : SonarJavaXmlFileSensor -> C# -> Zero Coverage Sensor -> CPD Block Indexer
09:23:02.703 INFO: Sensor SonarJavaXmlFileSensor [java]
09:23:02.703 INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=0ms
09:23:02.703 INFO: Sensor C# [csharp]
09:23:02.703 DEBUG: No files to analyze. Skip Sensor.
09:23:02.703 INFO: Sensor C# [csharp] (done) | time=0ms
09:23:02.703 INFO: Sensor Zero Coverage Sensor
09:23:02.703 INFO: Sensor Zero Coverage Sensor (done) | time=0ms
09:23:02.703 INFO: Sensor CPD Block Indexer
09:23:02.703 DEBUG: org.sonar.scanner.cpd.deprecated.DefaultCpdBlockIndexer is used for cs
09:23:02.703 DEBUG: No CpdMapping for language cs
09:23:02.703 INFO: Sensor CPD Block Indexer (done) | time=0ms
09:23:02.703 INFO: No SCM system was detected. You can use the 'sonar.scm.provider' property to explicitly specify it.
09:23:02.734 INFO: Calculating CPD for 0 files
09:23:02.734 INFO: CPD calculation finished
09:23:02.843 DEBUG: 'Properties/AssemblyInfo.cs' generated metadata as test  with charset 'UTF-8'
09:23:02.890 DEBUG: 'MattTest.cs' generated metadata as test  with charset 'UTF-8'
09:23:02.937 DEBUG: 'Program.cs' generated metadata as test  with charset 'UTF-8'
09:23:02.984 INFO: Analysis report generated in 234ms, dir size=36 KB
09:23:03.015 INFO: Analysis reports compressed in 31ms, zip size=10 KB
09:23:03.015 INFO: Analysis report generated in C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\out\.sonar\scan
ner-report
09:23:03.015 DEBUG: Upload report
09:23:03.093 DEBUG: POST 200 http://localhost:9000/api/ce/submit?projectKey=ProvisionTest&projectName=CSharpSonarTest |
time=78ms
09:23:03.093 INFO: Analysis report uploaded in 78ms
09:23:03.093 INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard?id=ProvisionTest
09:23:03.093 INFO: Note that you will be able to access the updated dashboard once the server has processed the submitte
d analysis report
09:23:03.093 INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AWRbYB2lMfbAybg_V2Vx
09:23:03.093 DEBUG: Report metadata written to C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\out\.sonar\repor
t-task.txt
09:23:03.109 DEBUG: Post-jobs :
09:23:03.109 INFO: Task total time: 5.217 s
09:23:03.187 INFO: ------------------------------------------------------------------------
09:23:03.187 INFO: EXECUTION SUCCESS
09:23:03.187 INFO: ------------------------------------------------------------------------
09:23:03.187 INFO: Total time: 9.398s
09:23:03.296 INFO: Final Memory: 13M/545M
09:23:03.296 INFO: ------------------------------------------------------------------------
Process returned exit code 0
The SonarQube Scanner has finished
09:23:03.389  Creating a summary markdown file...
09:23:03.389  Analysis results: http://localhost:9000/dashboard/index/ProvisionTest
09:23:03.405  Post-processing succeeded.

Hi,

Off-hand I have no idea where that “‘report’ parameter” error is coming from. Can you run a new analysis with the command line parameter -Dsonar.verbose=true to get fuller logs?

Ann

Isn’t -Dsonar.verbose=true the same as/d:sonar.verbose=true , which I did include in the analysis. When I try to use -Dsonar.verbose=true I get an error stating ‘Unrecognized command line argument: -sonar.verbose=true.’

``

Matt

Hi,

You’re right about -D vs /d:. Regarding having used it already, your logs don’t seem to reflect that. They’re far too short and pleasant to read to be verbose. Try again?

Ann

Hi,

Regarding this

Clearly I was looking at the wrong place in the thread. Some of your followups came to my inbox and others did not.

This part of your debug log is key:

09:23:01.035 DEBUG: 'Properties\AssemblyInfo.cs' indexed as test with language 'cs'
09:23:01.035 DEBUG: 'App.config' indexed as test with language 'null'
09:23:01.035 DEBUG: 'MattTest.cs' indexed as test with language 'cs'
09:23:01.051 DEBUG: 'Program.cs' indexed as test with language 'cs'

I’m guessing you have “test” in your project name; which results in the scanner thinking all your files are test files, not “actual code”. There’s a little more in the docs:

https://docs.sonarqube.org/display/SCAN/Miscellaneous+Advanced+Usages

Ann

** I ran it again – do I need to look elsewhere besides my SonarQube\logs folder to find more detailed logs? I have just been copying and pasting the results that are shown in the console.**

I notice this line near the beginning of the log:

13:20:26.895 13:20:26.895 sonar.verbose=true was specified - setting the log verbosity to ‘Debug’.

Here is the results:

C:\Users\mstack\source\repos\CSharpSonarTest2>SonarScanner.MSBuild.exe begin /k:"PTest" /n:"CSharpAnalysis" /d:sonar.ver
bose=true
SonarScanner for MSBuild 4.3.1
Using the .NET Framework version of the Scanner for MSBuild
Default properties file was found at C:\sonar-scanner-msbuild-4.3.1.1372\SonarQube.Analysis.xml
Loading analysis properties from C:\sonar-scanner-msbuild-4.3.1.1372\SonarQube.Analysis.xml
sonar.verbose=true was specified - setting the log verbosity to 'Debug'
Pre-processing started.
Preparing working directories...
Using environment variables to determine the download directory...
Creating directory: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube
13:20:26.895  13:20:26.879  Loading analysis properties from C:\sonar-scanner-msbuild-4.3.1.1372\SonarQube.Analysis.xml
13:20:26.895  13:20:26.895  sonar.verbose=true was specified - setting the log verbosity to 'Debug'
13:20:26.911  Updating build integration targets...
13:20:26.926  Installed SonarQube.Integration.ImportBefore.targets to C:\Users\mstack\AppData\Local\Microsoft\MSBuild\4.0\Microsoft.Common.targets\ImportBefore
13:20:26.926  Installed SonarQube.Integration.ImportBefore.targets to C:\Users\mstack\AppData\Local\Microsoft\MSBuild\10.0\Microsoft.Common.targets\ImportBefore
13:20:26.926  Installed SonarQube.Integration.ImportBefore.targets to C:\Users\mstack\AppData\Local\Microsoft\MSBuild\11.0\Microsoft.Common.targets\ImportBefore
13:20:26.926  Installed SonarQube.Integration.ImportBefore.targets to C:\Users\mstack\AppData\Local\Microsoft\MSBuild\12.0\Microsoft.Common.targets\ImportBefore
13:20:26.926  Installed SonarQube.Integration.ImportBefore.targets to C:\Users\mstack\AppData\Local\Microsoft\MSBuild\14.0\Microsoft.Common.targets\ImportBefore
13:20:26.942  Installed SonarQube.Integration.ImportBefore.targets to C:\Users\mstack\AppData\Local\Microsoft\MSBuild\15.0\Microsoft.Common.targets\ImportBefore
13:20:26.942  Installed SonarQube.Integration.targets to C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\bin\targets
13:20:26.942  Creating config and output folders...
13:20:26.942  Creating directory: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\conf
13:20:26.942  Creating directory: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\out
13:20:26.957  Fetching analysis configuration settings...
13:20:26.957  Downloading from http://localhost:9000/api/server/version...
13:20:26.989  Fetching properties for project 'PTest' from http://localhost:9000/api/settings/values?component=PTest...
13:20:26.989  Downloading from http://localhost:9000/api/settings/values?component=PTest...
13:20:27.004  No settings for project PTest. Getting global settings: http://localhost:9000/api/settings/values
13:20:27.004  Downloading from http://localhost:9000/api/settings/values...
13:20:27.082  Downloading from http://localhost:9000/api/languages/list...
13:20:27.082  Fetching quality profile for project 'PTest' from http://localhost:9000/api/qualityprofiles/search?projectKey=PTest...
13:20:27.098  Downloading from http://localhost:9000/api/qualityprofiles/search?projectKey=PTest...
13:20:27.098  Fetching quality profile for project 'PTest' from http://localhost:9000/api/qualityprofiles/search?defaults=true...
13:20:27.098  Downloading from http://localhost:9000/api/qualityprofiles/search?defaults=true...
13:20:27.129  Fetching active rules for quality profile 'AWQY1tUeg0uUlh1IQBNF' from http://localhost:9000/api/rules/search?f=repo,name,severity,lang,internalKey,templateKey,params,actives&ps=500&activation=true&qprofile=AWQY1tUeg0uUlh1IQBNF&p=1...
13:20:27.129  Downloading from http://localhost:9000/api/rules/search?f=repo,name,severity,lang,internalKey,templateKey,params,actives&ps=500&activation=true&qprofile=AWQY1tUeg0uUlh1IQBNF&p=1...
13:20:27.287  Fetching rules not active in quality profile 'AWQY1tUeg0uUlh1IQBNF' for language 'cs' from http://localhost:9000/api/rules/search?f=internalKey&ps=500&activation=false&qprofile=AWQY1tUeg0uUlh1IQBNF&p=1&languages=cs...
13:20:27.287  Downloading from http://localhost:9000/api/rules/search?f=internalKey&ps=500&activation=false&qprofile=AWQY1tUeg0uUlh1IQBNF&p=1&languages=cs...
13:20:27.334  Local analyzer cache: C:\Users\mstack\AppData\Local\Temp\.sonarqube\resources
13:20:27.334  Writing Roslyn generated ruleset to C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\conf\SonarQubeRoslyn-cs.ruleset...
13:20:27.349  Writing Roslyn analyzer additional file to C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\conf\cs\SonarLint.xml...
13:20:27.365  Provisioning analyzer assemblies for cs...
13:20:27.365  Installing required Roslyn analyzers...
13:20:27.365  Processing plugin: csharp version 7.2.0.5463
13:20:27.459  Cache hit: using plugin files from C:\Users\mstack\AppData\Local\Temp\.sonarqube\resources\1
13:20:27.474  Pre-processing succeeded.
C:\Users\mstack\source\repos\CSharpSonarTest2>MSBuild.exe /rebuild
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1001: Unknown switch.
Switch: /rebuild
For switch syntax, type "MSBuild /help"
C:\Users\mstack\source\repos\CSharpSonarTest2>MSBuild.exe t/rebuild
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: t/rebuild
C:\Users\mstack\source\repos\CSharpSonarTest2>MSBuild.exe t:rebuild
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: t:rebuild
C:\Users\mstack\source\repos\CSharpSonarTest2>MSBuild.exe  /t:rebuild
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 7/2/2018 1:21:45 PM.
Project "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest.sln" on node 1 (rebuild target(s)).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|Any CPU".
Project "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest.sln" (1) is building "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest\CSharpSonarTest.csproj" (2) on node 1 (Rebuild target(s)).
CoreClean:
  Deleting file "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest\bin\Debug\CSharpSonarTest.exe.config".
  Deleting file "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest\bin\Debug\CSharpSonarTest.exe".
  Deleting file "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest\bin\Debug\CSharpSonarTest.pdb".
  Deleting file "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest\obj\Debug\CSharpSonarTest.exe".
  Deleting file "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest\obj\Debug\CSharpSonarTest.pdb".
  Deleting file "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest\obj\Debug\CSharpSonarTest.csprojResolveA
  ssemblyReference.cache".
GenerateBindingRedirects:
  No suggested binding redirects from ResolveAssemblyReferences.
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the i
nput files.
CreateProjectSpecificDirs:
  Creating directory "C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\conf\0".
CoreCompile:
  C:\Program Files (x86)\MSBuild\14.0\bin\csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /platform:anycpu32bitpreferred
   /errorreport:prompt /warn:4 /define:DEBUG;TRACE /highentropyva+ /reference:"C:\Program Files (x86)\Reference Assembl
  ies\Microsoft\Framework\.NETFramework\v4.6.1\Microsoft.CSharp.dll" /reference:"C:\Program Files (x86)\Reference Assem
  blies\Microsoft\Framework\.NETFramework\v4.6.1\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\
  Microsoft\Framework\.NETFramework\v4.6.1\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Mic
  rosoft\Framework\.NETFramework\v4.6.1\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference
   Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Data.dll" /reference:"C:\Program Files (x86)\Reference As
  semblies\Microsoft\Framework\.NETFramework\v4.6.1\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies
  \Microsoft\Framework\.NETFramework\v4.6.1\System.Net.Http.dll" /reference:"C:\Program Files (x86)\Reference Assemblie
  s\Microsoft\Framework\.NETFramework\v4.6.1\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Mi
  crosoft\Framework\.NETFramework\v4.6.1\System.Xml.Linq.dll" /debug+ /debug:full /filealign:512 /optimize- /out:obj\De
  bug\CSharpSonarTest.exe /ruleset:"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tool
  s\\Rule Sets\MinimumRecommendedRules.ruleset" /subsystemversion:6.00 /target:exe /warnaserror- /utf8output MattTest.c
  s Program.cs Properties\AssemblyInfo.cs "C:\Users\mstack\AppData\Local\Temp\.NETFramework,Version=v4.6.1.AssemblyAttr
  ibutes.cs"
  Using shared compilation with compiler from directory: C:\Program Files (x86)\MSBuild\14.0\Bin
_CopyAppConfigFile:
  Copying file from "App.config" to "bin\Debug\CSharpSonarTest.exe.config".
CopyFilesToOutputDirectory:
  Copying file from "obj\Debug\CSharpSonarTest.exe" to "bin\Debug\CSharpSonarTest.exe".
  CSharpSonarTest -> C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest\bin\Debug\CSharpSonarTest.exe
  Copying file from "obj\Debug\CSharpSonarTest.pdb" to "bin\Debug\CSharpSonarTest.pdb".
Done Building Project "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest\CSharpSonarTest.csproj" (Rebuild target(s)).
Done Building Project "C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest.sln" (rebuild target(s)).
Build succeeded.
    0 Warning(s)
    0 Error(s)
Time Elapsed 00:00:01.89
C:\Users\mstack\source\repos\CSharpSonarTest2>SonarScanner.MSBuild.exe end
SonarScanner for MSBuild 4.3.1
Using the .NET Framework version of the Scanner for MSBuild
Default properties file was found at C:\sonar-scanner-msbuild-4.3.1.1372\SonarQube.Analysis.xml
Loading analysis properties from C:\sonar-scanner-msbuild-4.3.1.1372\SonarQube.Analysis.xml
Post-processing started.
13:22:03.763  Loading the SonarQube analysis config from C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\conf\SonarQubeAnalysisConfig.xml
13:22:03.763  Not running under TeamBuild
13:22:03.763  Analysis base directory: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube
Build directory:
Bin directory: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\bin
Config directory: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\conf
Output directory: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\out
Config file: C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\conf\SonarQubeAnalysisConfig.xml
Generating SonarQube project properties file to C:\Users\mstack\source\repos\CSharpSonarTest2\.sonarqube\out\sonar-project.properties
Setting analysis property: sonar.visualstudio.enable=false
Using longest common projects root path as project base directory: 'C:\Users\mstack\source\repos\CSharpSonarTest2\CSharpSonarTest'.
Dumping content of sonar-project.properties

That seemed to be the issue. Thanks for your help on this!

2 posts were split to a new topic: No issues in MSBuild analysis