Sonarqube for .Net application

Hi team

I am using SonarQube 9.9 LTS and I am trying to analysis .Net(c#) project. After saucerful analysis sonarqube is not analyzing .cs files.

I am using below configuration.

# must be unique in a given SonarQube instance
sonar.projectKey="FileTransferService-04.00.00"
sonar.projectName="FileTransferService-04.00.00_Build"
sonar.projectVersion=%REPORT_VERSION%
sonar.sources=%WORKSPACE%/SSTR/FileTransferService/FileTransferService
sonar.inclusions=**/*.cs
sonar.dotnet.key=netcoreapp
sonar.projectBaseDir=%WORKSPACE%/SSTR/FileTransferService/FileTransferService

Please find the logs below. Please let me know if i need to do some changes in configuration

k

Hi,

For .NET projects, you need to use SonarScanner for .NET.

 
HTH,
Ann

Hi Ann

I am using the same sonar scanner for .net

Hi,

Please provide your full analysis log.

Share the Scanner for .NET verbose logs

  • Add /d:"sonar.verbose=true" to the…
    • SonarScanner.MSBuild.exe or dotnet sonarscanner begin command to get more detailed logs
      • For example: SonarScanner.MSBuild.exe begin /k:"MyProject" /d:"sonar.verbose=true"
    • “SonarQubePrepare” or “SonarCloudPrepare” task’s extraProperties argument if you are using Azure DevOps
      • For example:
        - task: SonarCloudPrepare@1
            inputs:
              SonarCloud: 'sonarcloud'
              organization: 'foo'
              scannerMode: 'MSBuild'
              projectKey: 'foo_sonar-scanning-someconsoleapp'
              projectName: 'sonar-scanning-someconsoleapp'
              extraProperties: |
                sonar.verbose=true
        
  • The important logs are in the END step (i.e. SonarQubeAnalyze / SonarCloudAnalyze / “Run Code Analysis”)

Share the msbuild detailed logs

MsBuild.exe /t:Rebuild /v:d

or

dotnet build -v:d

 
Thx,
Ann

Hi Ann

Please find the below complete logs.

[FileTransferService-04.00.00_Build_New] $ C:\Jenkins\tools\sonar-scanner-.net-globaltool\sonar-scanner-9.0.2.104486-net-framework\sonar-scanner-5.0.1.3006\bin\sonar-scanner.bat -Dsonar.host.url=http://******/ ******** -Dsonar.projectKey="FileTransferService-04.00.00" -Dsonar.projectName="FileTransferService-04.00.00_Build" -Dsonar.sourceEncoding=UTF-8 -Dsonar.dotnet.key=netcoreapp -Dsonar.projectBaseDir=%WORKSPACE%/SSTR/FileTransferService/FileTransferService -Dsonar.projectVersion=04.00.00 -Dsonar.sources=%WORKSPACE%/SSTR/FileTransferService/FileTransferService -Dsonar.inclusions=**/*.cs -Dsonar.verbose=true
INFO: Scanner configuration file: C:\Jenkins\tools\sonar-scanner-.net-globaltool\sonar-scanner-9.0.2.104486-net-framework\sonar-scanner-5.0.1.3006\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
14:44:08.200 INFO: SonarScanner 5.0.1.3006
14:44:08.207 INFO: Java 17.0.12 Eclipse Adoptium (64-bit)
14:44:08.207 INFO: Windows Server 2019 10.0 amd64
14:44:08.517 DEBUG: keyStore is : 
14:44:08.517 DEBUG: keyStore type is : pkcs12
14:44:08.517 DEBUG: keyStore provider is : 
14:44:08.517 DEBUG: init keystore
14:44:08.518 DEBUG: init keymanager of type SunX509
14:44:08.831 DEBUG: Create: C:\Users\app-indadmin\.sonar\cache
14:44:08.831 INFO: User cache: C:\Users\app-indadmin\.sonar\cache
14:44:08.831 DEBUG: Create: C:\Users\app-indadmin\.sonar\cache\_tmp
14:44:08.833 DEBUG: Extract sonar-scanner-api-batch in temp...
14:44:08.844 DEBUG: Get bootstrap index...
14:44:08.844 DEBUG: Download: http://******/batch/index
14:44:08.962 DEBUG: Get bootstrap completed
14:44:09.172 DEBUG: Create isolated classloader...
14:44:09.208 DEBUG: Start temp cleaning...
14:44:09.212 DEBUG: Temp cleaning done
14:44:09.212 DEBUG: Execution getVersion
14:44:09.272 INFO: Analyzing on SonarQube server 9.9.5.90363
14:44:09.272 INFO: Default locale: "en_US", source code encoding: "UTF-8"
14:44:09.273 DEBUG: Work directory: C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build_New\SSTR\FileTransferService\FileTransferService\.scannerwork
14:44:09.274 DEBUG: Execution execute
14:44:10.711 DEBUG: Community 9.9.5.90363
14:44:11.081 INFO: Load global settings
14:44:11.149 DEBUG: GET 200 http://******/api/settings/values.protobuf | time=67ms
14:44:11.208 INFO: Load global settings (done) | time=127ms
14:44:11.214 INFO: Server id: 30FB9F06-AY8zM2CXgcLfN9a6beAY
14:44:11.218 INFO: User cache: C:\Users\app-indadmin\.sonar\cache
14:44:11.221 INFO: Load/download plugins
14:44:11.222 INFO: Load plugins index
14:44:11.231 DEBUG: GET 200 http://******/api/plugins/installed | time=9ms
14:44:11.305 INFO: Load plugins index (done) | time=83ms
14:44:12.826 INFO: Load/download plugins (done) | time=1604ms
14:44:13.022 DEBUG: Plugins:
14:44:13.022 DEBUG:   * C++ (Community) 2.1.1.488 (cxx)
14:44:13.022 DEBUG:   * Python Code Quality and Security 3.24.1.11916 (python)
14:44:13.022 DEBUG:   * Go Code Quality and Security 1.11.0.3905 (go)
14:44:13.022 DEBUG:   * JaCoCo 1.3.0.1538 (jacoco)
14:44:13.023 DEBUG:   * Kotlin Code Quality and Security 2.12.0.1956 (kotlin)
14:44:13.023 DEBUG:   * ShellCheck Analyzer 2.5.0 (shellcheck)
14:44:13.023 DEBUG:   * SonarQube CNES CXX Plugin 1.1 (cnescxx)
14:44:13.023 DEBUG:   * Z PL/SQL Analyzer 3.4.0 (plsqlopen)
14:44:13.023 DEBUG:   * IaC Code Quality and Security 1.11.0.2847 (iac)
14:44:13.023 DEBUG:   * JavaScript/TypeScript/CSS Code Quality and Security 9.13.0.20537 (javascript)
14:44:13.023 DEBUG:   * Ruby Code Quality and Security 1.11.0.3905 (ruby)
14:44:13.023 DEBUG:   * Scala Code Quality and Security 1.11.0.3905 (sonarscala)
14:44:13.023 DEBUG:   * C# Code Quality and Security 8.51.0.59060 (csharp)
14:44:13.024 DEBUG:   * Java Code Quality and Security 7.16.0.30901 (java)
14:44:13.024 DEBUG:   * HTML Code Quality and Security 3.7.1.3306 (web)
14:44:13.024 DEBUG:   * Flex Code Quality and Security 2.8.0.3166 (flex)
14:44:13.024 DEBUG:   * XML Code Quality and Security 2.7.0.3820 (xml)
14:44:13.024 DEBUG:   * PHP Code Quality and Security 3.27.1.9352 (php)
14:44:13.024 DEBUG:   * Text Code Quality and Security 2.0.2.1090 (text)
14:44:13.024 DEBUG:   * Checkstyle 10.16.0 (checkstyle)
14:44:13.024 DEBUG:   * VB.NET Code Quality and Security 8.51.0.59060 (vbnet)
14:44:13.024 DEBUG:   * Configuration detection fot Code Quality and Security 1.2.0.267 (config)
14:44:14.669 INFO: Process project properties
14:44:14.685 INFO: Process project properties (done) | time=16ms
14:44:14.688 INFO: Execute project builders
14:44:14.688 DEBUG: Execute project builder: org.sonar.plugins.csharp.CSharpGlobalProtobufFileProcessor
14:44:14.689 DEBUG: Execute project builder: org.sonar.plugins.vbnet.VbNetGlobalProtobufFileProcessor
14:44:14.690 INFO: Execute project builders (done) | time=2ms
14:44:14.697 INFO: Project key: FileTransferService-04.00.00
14:44:14.697 INFO: Base dir: C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build_new\SSTR\FileTransferService\FileTransferService
14:44:14.697 INFO: Working dir: C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build_New\SSTR\FileTransferService\FileTransferService\.scannerwork
14:44:14.697 DEBUG: Project global encoding: UTF-8, default locale: en_US
14:44:14.704 INFO: Load project settings for component key: 'FileTransferService-04.00.00'
14:44:14.728 DEBUG: GET 200 http://******/api/settings/values.protobuf?component=FileTransferService-04.00.00 | time=23ms
14:44:14.729 INFO: Load project settings for component key: 'FileTransferService-04.00.00' (done) | time=25ms
14:44:15.019 DEBUG: Creating module hierarchy
14:44:15.019 DEBUG:   Init module 'FileTransferService-04.00.00_Build'
14:44:15.020 DEBUG:     Base dir: C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build_new\SSTR\FileTransferService\FileTransferService
14:44:15.020 DEBUG:     Working dir: C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build_New\SSTR\FileTransferService\FileTransferService\.scannerwork
14:44:15.021 DEBUG:     Module global encoding: UTF-8, default locale: en_US
14:44:15.046 DEBUG: Available languages:
14:44:15.047 DEBUG:   * CXX => "cxx"
14:44:15.047 DEBUG:   * Python => "py"
14:44:15.047 DEBUG:   * Go => "go"
14:44:15.047 DEBUG:   * Kotlin => "kotlin"
14:44:15.047 DEBUG:   * Shell => "shell"
14:44:15.047 DEBUG:   * PL/SQL (ZPA) => "plsqlopen"
14:44:15.048 DEBUG:   * Terraform => "terraform"
14:44:15.048 DEBUG:   * CloudFormation => "cloudformation"
14:44:15.048 DEBUG:   * Kubernetes => "kubernetes"
14:44:15.048 DEBUG:   * Docker => "docker"
14:44:15.049 DEBUG:   * JavaScript => "js"
14:44:15.049 DEBUG:   * TypeScript => "ts"
14:44:15.049 DEBUG:   * CSS => "css"
14:44:15.049 DEBUG:   * Ruby => "ruby"
14:44:15.049 DEBUG:   * Scala => "scala"
14:44:15.050 DEBUG:   * C# => "cs"
14:44:15.050 DEBUG:   * Java => "java"
14:44:15.050 DEBUG:   * HTML => "web"
14:44:15.050 DEBUG:   * JSP => "jsp"
14:44:15.050 DEBUG:   * Flex => "flex"
14:44:15.051 DEBUG:   * XML => "xml"
14:44:15.051 DEBUG:   * PHP => "php"
14:44:15.051 DEBUG:   * Text => "text"
14:44:15.051 DEBUG:   * Secrets => "secrets"
14:44:15.051 DEBUG:   * VB.NET => "vbnet"
14:44:15.052 DEBUG:   * YAML => "yaml"
14:44:15.052 DEBUG:   * JSON => "json"
14:44:15.108 INFO: Auto-configuring with CI 'Jenkins'
14:44:15.111 INFO: Load quality profiles
14:44:16.467 INFO: Load project repositories (done) | time=25ms
14:44:16.631 DEBUG: Declared extensions of language CXX were converted to sonar.lang.patterns.cxx : **/*.c,**/*.h,**/*.cxx,**/*.cpp
14:44:16.631 DEBUG: Declared extensions of language Python were converted to sonar.lang.patterns.py : **/*.py
14:44:16.631 DEBUG: Declared extensions of language Go were converted to sonar.lang.patterns.go : **/*.go
14:44:16.631 DEBUG: Declared extensions of language Kotlin were converted to sonar.lang.patterns.kotlin : **/*.kt
14:44:16.631 DEBUG: Declared extensions of language Shell were converted to sonar.lang.patterns.shell : **/*.sh,**/*.ksh,**/*.bash
14:44:16.632 DEBUG: Declared extensions of language PL/SQL (ZPA) were converted to sonar.lang.patterns.plsqlopen : **/*.sql,**/*.pkg,**/*.pks,**/*.pkb
14:44:16.632 DEBUG: Declared extensions of language Terraform were converted to sonar.lang.patterns.terraform : **/*.tf
14:44:16.632 DEBUG: Declared extensions of language CloudFormation were converted to sonar.lang.patterns.cloudformation : 
14:44:16.632 DEBUG: Declared extensions of language Kubernetes were converted to sonar.lang.patterns.kubernetes : 
14:44:16.632 DEBUG: Declared extensions of language Docker were converted to sonar.lang.patterns.docker : 
14:44:16.633 DEBUG: Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : **/*.js,**/*.jsx,**/*.cjs,**/*.mjs,**/*.vue
14:44:16.633 DEBUG: Declared extensions of language TypeScript were converted to sonar.lang.patterns.ts : **/*.ts,**/*.tsx,**/*.cts,**/*.mts
14:44:16.633 DEBUG: Declared extensions of language CSS were converted to sonar.lang.patterns.css : **/*.css,**/*.less,**/*.scss
14:44:16.633 DEBUG: Declared extensions of language Ruby were converted to sonar.lang.patterns.ruby : **/*.rb
14:44:16.634 DEBUG: Declared extensions of language Scala were converted to sonar.lang.patterns.scala : **/*.scala
14:44:16.634 DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs
14:44:16.634 DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav
14:44:16.634 DEBUG: Declared extensions of language HTML were converted to sonar.lang.patterns.web : **/*.html,**/*.xhtml,**/*.cshtml,**/*.vbhtml,**/*.aspx,**/*.ascx,**/*.rhtml,**/*.erb,**/*.shtm,**/*.shtml,**/*.cmp,**/*.twig
14:44:16.635 DEBUG: Declared extensions of language JSP were converted to sonar.lang.patterns.jsp : **/*.jsp,**/*.jspf,**/*.jspx
14:44:16.635 DEBUG: Declared extensions of language Flex were converted to sonar.lang.patterns.flex : **/*.as
14:44:16.635 DEBUG: Declared extensions of language XML were converted to sonar.lang.patterns.xml : **/*.xml,**/*.xsd,**/*.xsl
14:44:16.635 DEBUG: Declared extensions of language PHP were converted to sonar.lang.patterns.php : **/*.php,**/*.php3,**/*.php4,**/*.php5,**/*.phtml,**/*.inc
14:44:16.636 DEBUG: Declared extensions of language Text were converted to sonar.lang.patterns.text : 
14:44:16.636 DEBUG: Declared extensions of language Secrets were converted to sonar.lang.patterns.secrets : 
14:44:16.636 DEBUG: Declared extensions of language VB.NET were converted to sonar.lang.patterns.vbnet : **/*.vb
14:44:16.636 DEBUG: Declared extensions of language YAML were converted to sonar.lang.patterns.yaml : **/*.yaml,**/*.yml
14:44:16.636 DEBUG: Declared extensions of language JSON were converted to sonar.lang.patterns.json : **/*.json
14:44:16.645 DEBUG: Will ignore generated code
14:44:16.647 DEBUG: Will ignore generated code
14:44:16.649 INFO: Indexing files...
14:44:16.649 INFO: Project configuration:
14:44:16.650 INFO:   Included sources: **/*.cs
14:44:16.718 DEBUG: loading config FileBasedConfig[C:\Users\app-indadmin\.config\jgit\config]
14:44:16.724 DEBUG: readpipe [C:\Program Files\Git\cmd\git.exe, --version],C:\Program Files\Git\cmd
14:44:16.809 DEBUG: readpipe may return 'git version 2.45.0.windows.1'
14:44:16.809 DEBUG: remaining output:

14:44:16.813 DEBUG: readpipe [C:\Program Files\Git\cmd\git.exe, config, --system, --show-origin, --list, -z],C:\Program Files\Git\cmd
14:44:16.876 DEBUG: readpipe may return 'file:C:/Program Files/Git/etc/gitconfigdiff.astextplain.textconv'
14:44:16.876 DEBUG: remaining output:

14:44:16.876 DEBUG: astextplainfile:C:/Program Files/Git/etc/gitconfigfilter.lfs.clean
14:44:16.876 DEBUG: git-lfs clean -- %ffile:C:/Program Files/Git/etc/gitconfigfilter.lfs.smudge
14:44:16.876 DEBUG: git-lfs smudge -- %ffile:C:/Program Files/Git/etc/gitconfigfilter.lfs.process
14:44:16.876 DEBUG: git-lfs filter-processfile:C:/Program Files/Git/etc/gitconfigfilter.lfs.required
14:44:16.876 DEBUG: truefile:C:/Program Files/Git/etc/gitconfighttp.sslbackend
14:44:16.876 DEBUG: opensslfile:C:/Program Files/Git/etc/gitconfighttp.sslcainfo
14:44:16.876 DEBUG: C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crtfile:C:/Program Files/Git/etc/gitconfigcore.autocrlf
14:44:16.876 DEBUG: truefile:C:/Program Files/Git/etc/gitconfigcore.fscache
14:44:16.876 DEBUG: truefile:C:/Program Files/Git/etc/gitconfigcore.symlinks
14:44:16.876 DEBUG: falsefile:C:/Program Files/Git/etc/gitconfigpull.rebase
14:44:16.876 DEBUG: falsefile:C:/Program Files/Git/etc/gitconfigcredential.helper
14:44:16.876 DEBUG: managerfile:C:/Program Files/Git/etc/gitconfigcredential.https://dev.azure.com.usehttppath
14:44:16.877 DEBUG: truefile:C:/Program Files/Git/etc/gitconfiginit.defaultbranch
14:44:16.879 DEBUG: master
14:44:16.881 DEBUG: loading config FileBasedConfig[C:\Program Files\Git\etc\gitconfig]
14:44:16.885 DEBUG: loading config FileBasedConfig[C:\Users\app-indadmin\.gitconfig]
14:44:17.098 DEBUG: 213 non excluded files in this Git repository
14:44:17.126 DEBUG: 'ApiMgmt.cs' indexed with language 'cs'
14:44:17.247 DEBUG: 'ClientConnection.cs' indexed with language 'cs'
14:44:17.250 DEBUG: 'CommunicationMgmt.cs' indexed with language 'cs'
14:44:17.252 DEBUG: 'ConfigMgmt.cs' indexed with language 'cs'
14:44:17.254 DEBUG: 'ConstantsMgmt.cs' indexed with language 'cs'
14:44:17.255 DEBUG: 'EventLogging.cs' indexed with language 'cs'
14:44:17.258 DEBUG: 'FileMgmt.cs' indexed with language 'cs'
14:44:17.260 DEBUG: 'FtpMgmt.cs' indexed with language 'cs'
14:44:17.266 DEBUG: 'LdapsAuthentication.cs' indexed with language 'cs'
14:44:17.267 DEBUG: 'Logging.cs' indexed with language 'cs'
14:44:17.268 DEBUG: 'LogPurgeService.cs' indexed with language 'cs'
14:44:17.269 DEBUG: 'LotfileMgmt.cs' indexed with language 'cs'
14:44:17.271 DEBUG: 'MailMgmt.cs' indexed with language 'cs'
14:44:17.283 DEBUG: 'obj\Debug\net8.0-windows10.0.17763.0\.NETCoreApp,Version=v8.0.AssemblyAttributes.cs' indexed with language 'cs'
14:44:17.301 DEBUG: 'obj\Debug\net8.0-windows10.0.17763.0\FileTransferService.AssemblyInfo.cs' indexed with language 'cs'
14:44:17.320 DEBUG: 'obj\Debug\net8.0-windows10.0.17763.0\FileTransferService.GlobalUsings.g.cs' indexed with language 'cs'
14:44:17.327 DEBUG: 'obj\Release\net8.0-windows10.0.17763.0\.NETCoreApp,Version=v8.0.AssemblyAttributes.cs' indexed with language 'cs'
14:44:17.329 DEBUG: 'obj\Release\net8.0-windows10.0.17763.0\FileTransferService.AssemblyInfo.cs' indexed with language 'cs'
14:44:17.333 DEBUG: 'obj\Release\net8.0-windows10.0.17763.0\FileTransferService.GlobalUsings.g.cs' indexed with language 'cs'
14:44:17.336 DEBUG: 'Program.cs' indexed with language 'cs'
14:44:17.343 DEBUG: 'ScanTimer.cs' indexed with language 'cs'
14:44:17.345 DEBUG: 'SecurityMgmt.cs' indexed with language 'cs'
14:44:17.346 DEBUG: 'SFTPMgmt.cs' indexed with language 'cs'
14:44:17.347 DEBUG: 'TCPDataMgmt.cs' indexed with language 'cs'
14:44:17.348 DEBUG: 'TCPMsgMgmt.cs' indexed with language 'cs'
14:44:17.349 DEBUG: 'TypeMgmt.cs' indexed with language 'cs'
14:44:17.350 DEBUG: 'WaferMgmt.cs' indexed with language 'cs'
14:44:17.351 DEBUG: 'Worker.cs' indexed with language 'cs'
14:44:17.354 INFO: 28 files indexed
14:44:17.355 INFO: 183 files ignored because of inclusion/exclusion patterns
14:44:17.355 INFO: 0 files ignored because of scm ignore settings
14:44:17.357 INFO: Quality profile for cs: Sonar way
14:44:17.357 INFO: ------------- Run sensors on module FileTransferService-04.00.00_Build
14:44:17.587 INFO: Load metrics repository
14:44:17.597 DEBUG: GET 200 http://******/api/metrics/search?ps=500&p=1 | time=8ms
14:44:17.619 INFO: Load metrics repository (done) | time=32ms
14:44:19.824 DEBUG: 'JavaSensor' skipped because there is no related file in current project
14:44:19.824 DEBUG: 'Import external issues report' skipped because one of the required properties is missing
14:44:19.825 DEBUG: 'Import external issues report from SARIF file.' skipped because one of the required properties is missing
14:44:19.825 DEBUG: 'Python Sensor' skipped because there is no related file in current project
14:44:19.825 DEBUG: 'Cobertura Sensor for Python coverage' skipped because there is no related file in current project
14:44:19.825 DEBUG: 'PythonXUnitSensor' skipped because there is no related file in current project
14:44:19.826 DEBUG: 'Import of Pylint issues' skipped because there is no related file in current project
14:44:19.827 DEBUG: 'Import of Bandit issues' skipped because there is no related file in current project
14:44:19.827 DEBUG: 'Import of Flake8 issues' skipped because there is no related file in current project
14:44:19.827 DEBUG: 'Code Quality and Security for Go' skipped because there is no related file in current project
14:44:19.828 DEBUG: 'Go Unit Test Report' skipped because there is no related file in current project
14:44:19.828 DEBUG: 'Go Cover sensor for Go coverage' skipped because one of the required properties is missing
14:44:19.829 DEBUG: 'Import of go vet issues' skipped because there is no related file in current project
14:44:19.829 DEBUG: 'Import of Golint issues' skipped because there is no related file in current project
14:44:19.829 DEBUG: 'Import of GoMetaLinter issues' skipped because there is no related file in current project
14:44:19.830 DEBUG: 'Import of GolangCI-Lint issues' skipped because there is no related file in current project
14:44:19.830 DEBUG: 'Kotlin Sensor' skipped because there is no related file in current project
14:44:19.830 DEBUG: 'KotlinSurefireSensor' skipped because there is no related file in current project
14:44:19.831 DEBUG: 'Import of detekt issues' skipped because there is no related file in current project
14:44:19.832 DEBUG: 'Import of Android Lint issues' skipped because one of the required properties is missing
14:44:19.832 DEBUG: 'Import of ktlint issues' skipped because there is no related file in current project
14:44:19.832 DEBUG: 'ShellCheck Sensor' skipped because there is no related file in current project
14:44:19.833 DEBUG: 'Z PL/SQL Analyzer' skipped because there is no related file in current project
14:44:19.834 DEBUG: 'IaC Terraform Sensor' skipped because there is no related file in current project
14:44:19.834 DEBUG: 'IaC CloudFormation Sensor' skipped because there is no related file in current project
14:44:19.834 DEBUG: 'IaC Kubernetes Sensor' skipped because there is no related file in current project
14:44:19.834 DEBUG: 'JavaScript analysis' skipped because there is no related file in current project
14:44:19.835 DEBUG: 'TypeScript analysis' skipped because there is no related file in current project
14:44:19.835 DEBUG: 'JavaScript inside YAML analysis' skipped because there is no related file in current project
14:44:19.836 DEBUG: 'JavaScript/TypeScript Coverage' skipped because there is no related file in current project
14:44:19.836 DEBUG: 'Import of ESLint issues' skipped because one of the required properties is missing
14:44:19.836 DEBUG: 'Import of TSLint issues' skipped because one of the required properties is missing
14:44:19.837 DEBUG: 'CSS Metrics' skipped because there is no related file in current project
14:44:19.837 DEBUG: 'Import of stylelint issues' skipped because there is no related file in current project
14:44:19.837 DEBUG: 'Ruby Sensor' skipped because there is no related file in current project
14:44:19.838 DEBUG: 'Import of RuboCop issues' skipped because there is no related file in current project
14:44:19.838 DEBUG: 'SimpleCov Sensor for Ruby coverage' skipped because there is no related file in current project
14:44:19.838 DEBUG: 'Scala Sensor' skipped because there is no related file in current project
14:44:19.839 DEBUG: 'Scoverage sensor for Scala coverage' skipped because there is no related file in current project
14:44:19.839 DEBUG: 'Import of Scalastyle issues' skipped because there is no related file in current project
14:44:19.839 DEBUG: 'Import of Scapegoat issues' skipped because there is no related file in current project
14:44:19.840 DEBUG: 'Import of Checkstyle issues' skipped because there is no related file in current project
14:44:19.840 DEBUG: 'Import of PMD issues' skipped because one of the required properties is missing
14:44:19.841 DEBUG: 'Import of SpotBugs issues' skipped because there is no related file in current project
14:44:19.841 DEBUG: 'SurefireSensor' skipped because there is no related file in current project
14:44:19.841 DEBUG: 'Removed properties sensor' skipped because there is no related file in current project
14:44:19.842 DEBUG: 'Flex' skipped because there is no related file in current project
14:44:19.842 DEBUG: 'Flex Cobertura' skipped because there is no related file in current project
14:44:19.843 DEBUG: 'XML Sensor' skipped because there is no related file in current project
14:44:19.843 DEBUG: 'PHP sensor' skipped because there is no related file in current project
14:44:19.843 DEBUG: 'Analyzer for "php.ini" files' skipped because there is no related file in current project
14:44:19.844 DEBUG: 'Import of PHPStan issues' skipped because there is no related file in current project
14:44:19.844 DEBUG: 'Import of Psalm issues' skipped because there is no related file in current project
14:44:19.844 DEBUG: 'CheckstyleSensor' skipped because there is no related file in current project
14:44:19.846 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing
14:44:19.847 DEBUG: Sensors : JaCoCo XML Report Importer -> CSS Rules -> C# Project Type Information -> C# Analysis Log -> C# Properties -> HTML -> TextAndSecretsSensor -> VB.NET Project Type Information -> VB.NET Analysis Log -> VB.NET Properties -> IaC Docker Sensor
14:44:19.848 INFO: Sensor JaCoCo XML Report Importer [jacoco]
14:44:19.849 INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
14:44:19.850 INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
14:44:19.850 INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=3ms
14:44:19.850 INFO: Sensor CSS Rules [javascript]
14:44:19.851 INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
14:44:19.851 INFO: Sensor CSS Rules [javascript] (done) | time=1ms
14:44:19.851 INFO: Sensor C# Project Type Information [csharp]
14:44:19.852 INFO: Sensor C# Project Type Information [csharp] (done) | time=1ms
14:44:19.852 INFO: Sensor C# Analysis Log [csharp]
14:44:19.892 DEBUG: Project 'FileTransferService-04.00.00': Property missing: 'sonar.cs.analyzer.projectOutPaths'. No protobuf files will be loaded for this project.
14:44:19.892 INFO: Sensor C# Analysis Log [csharp] (done) | time=40ms
14:44:19.892 INFO: Sensor C# Properties [csharp]
14:44:19.892 DEBUG: Project 'FileTransferService-04.00.00': Property missing: 'sonar.cs.analyzer.projectOutPaths'. No protobuf files will be loaded for this project.
14:44:19.893 DEBUG: Project 'FileTransferService-04.00.00': No Roslyn issues reports have been found.
14:44:19.893 INFO: Sensor C# Properties [csharp] (done) | time=1ms
14:44:19.893 INFO: Sensor HTML [web]
14:44:19.896 INFO: Sensor HTML [web] (done) | time=3ms
14:44:19.896 INFO: Sensor TextAndSecretsSensor [text]
14:44:19.911 INFO: 28 source files to be analyzed
14:44:19.922 DEBUG: 'MailMgmt.cs' generated metadata with charset 'UTF-8'
14:44:19.943 DEBUG: 'ConstantsMgmt.cs' generated metadata with charset 'UTF-8'
14:44:19.952 DEBUG: 'obj/Debug/net8.0-windows10.0.17763.0/FileTransferService.AssemblyInfo.cs' generated metadata with charset 'UTF-8'
14:44:19.981 DEBUG: 'LotfileMgmt.cs' generated metadata with charset 'UTF-8'
14:44:20.056 DEBUG: 'TypeMgmt.cs' generated metadata with charset 'UTF-8'
14:44:20.061 DEBUG: 'Worker.cs' generated metadata with charset 'windows-1252'
14:44:20.070 DEBUG: 'TCPDataMgmt.cs' generated metadata with charset 'UTF-8'
14:44:20.091 DEBUG: 'ConfigMgmt.cs' generated metadata with charset 'UTF-8'
14:44:20.119 DEBUG: 'TCPMsgMgmt.cs' generated metadata with charset 'UTF-8'
14:44:20.125 DEBUG: 'FtpMgmt.cs' generated metadata with charset 'UTF-8'
14:44:20.131 DEBUG: 'ApiMgmt.cs' generated metadata with charset 'UTF-8'
14:44:20.138 DEBUG: 'CommunicationMgmt.cs' generated metadata with charset 'UTF-8'
14:44:20.157 DEBUG: 'FileMgmt.cs' generated metadata with charset 'UTF-8'
14:44:20.174 DEBUG: 'EventLogging.cs' generated metadata with charset 'UTF-8'
14:44:20.186 DEBUG: 'WaferMgmt.cs' generated metadata with charset 'UTF-8'
14:44:20.202 DEBUG: 'SecurityMgmt.cs' generated metadata with charset 'UTF-8'
14:44:20.205 DEBUG: 'obj/Release/net8.0-windows10.0.17763.0/FileTransferService.AssemblyInfo.cs' generated metadata with charset 'UTF-8'
14:44:20.206 DEBUG: 'Logging.cs' generated metadata with charset 'UTF-8'
14:44:20.208 DEBUG: 'obj/Release/net8.0-windows10.0.17763.0/FileTransferService.GlobalUsings.g.cs' generated metadata with charset 'UTF-8'
14:44:20.209 DEBUG: 'obj/Release/net8.0-windows10.0.17763.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs' generated metadata with charset 'UTF-8'
14:44:20.211 DEBUG: 'SFTPMgmt.cs' generated metadata with charset 'UTF-8'
14:44:20.215 DEBUG: 'obj/Debug/net8.0-windows10.0.17763.0/FileTransferService.GlobalUsings.g.cs' generated metadata with charset 'UTF-8'
14:44:20.216 DEBUG: 'ScanTimer.cs' generated metadata with charset 'UTF-8'
14:44:20.217 DEBUG: 'LdapsAuthentication.cs' generated metadata with charset 'UTF-8'
14:44:20.219 DEBUG: 'LogPurgeService.cs' generated metadata with charset 'UTF-8'
14:44:20.221 DEBUG: 'Program.cs' generated metadata with charset 'UTF-8'
14:44:20.222 DEBUG: 'obj/Debug/net8.0-windows10.0.17763.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs' generated metadata with charset 'UTF-8'
14:44:20.224 DEBUG: 'ClientConnection.cs' generated metadata with charset 'UTF-8'
14:44:20.229 INFO: 28/28 source files have been analyzed
14:44:20.229 INFO: Sensor TextAndSecretsSensor [text] (done) | time=333ms
14:44:20.229 INFO: Sensor VB.NET Project Type Information [vbnet]
14:44:20.230 INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
14:44:20.230 INFO: Sensor VB.NET Analysis Log [vbnet]
14:44:20.329 DEBUG: Project 'FileTransferService-04.00.00': Property missing: 'sonar.vbnet.analyzer.projectOutPaths'. No protobuf files will be loaded for this project.
14:44:20.330 INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=100ms
14:44:20.330 INFO: Sensor VB.NET Properties [vbnet]
14:44:20.330 DEBUG: Project 'FileTransferService-04.00.00': Property missing: 'sonar.vbnet.analyzer.projectOutPaths'. No protobuf files will be loaded for this project.
14:44:20.330 DEBUG: Project 'FileTransferService-04.00.00': No Roslyn issues reports have been found.
14:44:20.330 INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
14:44:20.330 INFO: Sensor IaC Docker Sensor [iac]
14:44:20.333 INFO: 0 source files to be analyzed
14:44:20.375 INFO: 0/0 source files have been analyzed
14:44:20.376 INFO: Sensor IaC Docker Sensor [iac] (done) | time=46ms
14:44:20.390 INFO: ------------- Run sensors on project
14:44:20.644 DEBUG: 'CXX verify analysis parameters' skipped because there is no related file in current project
14:44:20.645 DEBUG: 'XSL transformation(s)' skipped because one of the required properties is missing
14:44:20.645 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing
14:44:20.646 DEBUG: 'CXX' skipped because there is no related file in current project
14:44:20.646 DEBUG: 'CXX RATS report import' skipped because there is no related file in current project
14:44:20.647 DEBUG: 'CXX Cppcheck report import' skipped because there is no related file in current project
14:44:20.647 DEBUG: 'CXX Infer report import' skipped because there is no related file in current project
14:44:20.648 DEBUG: 'CXX PC-lint report import' skipped because there is no related file in current project
14:44:20.648 DEBUG: 'CXX Dr. Memory report import' skipped because there is no related file in current project
14:44:20.648 DEBUG: 'CXX GCC compiler report import' skipped because there is no related file in current project
14:44:20.648 DEBUG: 'CXX Visual C++ compiler report import' skipped because there is no related file in current project
14:44:20.649 DEBUG: 'CXX Vera++ report import' skipped because there is no related file in current project
14:44:20.649 DEBUG: 'CXX Valgrind report import' skipped because there is no related file in current project
14:44:20.649 DEBUG: 'CXX Clang-Tidy report import' skipped because there is no related file in current project
14:44:20.650 DEBUG: 'CXX Clang Static Analyzer report import' skipped because there is no related file in current project
14:44:20.650 DEBUG: 'CXX other analyser report import' skipped because there is no related file in current project
14:44:20.650 DEBUG: 'CXX xUnit Test report import' skipped because one of the required properties is missing
14:44:20.650 DEBUG: 'CXX VSTest/NUnit Test report import' skipped because there is no related file in current project
14:44:20.651 DEBUG: 'CXX Bullseye coverage report import' skipped because there is no related file in current project
14:44:20.651 DEBUG: 'CXX Cobertura XML coverage report import' skipped because there is no related file in current project
14:44:20.651 DEBUG: 'CXX Testwell CTC++ TXT coverage report import' skipped because there is no related file in current project
14:44:20.652 DEBUG: 'CXX Visual Studio XML coverage report import' skipped because there is no related file in current project
14:44:20.652 DEBUG: 'C# Tests Coverage Report Import' skipped because one of the required properties is missing
14:44:20.653 DEBUG: '[Deprecated] C# Integration Tests Coverage Report Import' skipped because one of the required properties is missing
14:44:20.653 DEBUG: 'C# Unit Test Results Import' skipped because one of the required properties is missing
14:44:20.653 DEBUG: 'VB.NET' skipped because there is no related file in current project
14:44:20.653 DEBUG: 'VB.NET File Caching Sensor' skipped because there is no related file in current project
14:44:20.654 DEBUG: 'VB.NET Tests Coverage Report Import' skipped because there is no related file in current project
14:44:20.654 DEBUG: '[Deprecated] VB.NET Integration Tests Coverage Report Import' skipped because there is no related file in current project
14:44:20.655 DEBUG: 'VB.NET Unit Test Results Import' skipped because there is no related file in current project
14:44:20.655 DEBUG: 'Java CPD Block Indexer' skipped because there is no related file in current project
14:44:20.655 DEBUG: Sensors : C# -> Analysis Warnings import -> C# File Caching Sensor -> Zero Coverage Sensor
14:44:20.656 INFO: Sensor C# [csharp]
14:44:20.656 WARN: Your project contains C# files which cannot be analyzed with the scanner you are using. To analyze C# or VB.NET, you must use the SonarScanner for .NET 5.x or higher, see https://redirect.sonarsource.com/doc/install-configure-scanner-msbuild.html
14:44:20.656 INFO: Sensor C# [csharp] (done) | time=1ms
14:44:20.656 INFO: Sensor Analysis Warnings import [csharp]
14:44:20.657 INFO: Sensor Analysis Warnings import [csharp] (done) | time=1ms
14:44:20.657 INFO: Sensor C# File Caching Sensor [csharp]
14:44:20.658 WARN: Incremental PR analysis: Could not determine common base path, cache will not be computed. Consider setting 'sonar.projectBaseDir' property.
14:44:20.658 INFO: Sensor C# File Caching Sensor [csharp] (done) | time=1ms
14:44:20.658 INFO: Sensor Zero Coverage Sensor
14:44:20.661 INFO: Sensor Zero Coverage Sensor (done) | time=3ms
14:44:20.817 INFO: SCM Publisher SCM provider for this project is: git
14:44:20.818 INFO: SCM Publisher 6 source files to be analyzed
14:44:20.821 DEBUG: Collecting committed files
14:44:20.913 DEBUG: Collecting committed files (done) | time=92ms
14:44:20.917 DEBUG: Looking for git command in the PATH using where.exe (Windows)
14:44:22.132 DEBUG: Found git.exe at C:\Program Files\Git\cmd\git.exe
14:44:22.195 INFO: SCM Publisher 0/6 source files have been analyzed (done) | time=1376ms
14:44:22.195 WARN: Missing blame information for the following files:
14:44:22.195 WARN:   * obj/Debug/net8.0-windows10.0.17763.0/FileTransferService.AssemblyInfo.cs
14:44:22.195 WARN:   * obj/Release/net8.0-windows10.0.17763.0/FileTransferService.AssemblyInfo.cs
14:44:22.195 WARN:   * obj/Release/net8.0-windows10.0.17763.0/FileTransferService.GlobalUsings.g.cs
14:44:22.195 WARN:   * obj/Release/net8.0-windows10.0.17763.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs
14:44:22.195 WARN:   * obj/Debug/net8.0-windows10.0.17763.0/FileTransferService.GlobalUsings.g.cs
14:44:22.195 WARN:   * obj/Debug/net8.0-windows10.0.17763.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs
14:44:22.195 WARN: This may lead to missing/broken features in SonarQube
14:44:22.197 INFO: CPD Executor Calculating CPD for 0 files
14:44:22.198 INFO: CPD Executor CPD calculation finished (done) | time=0ms
14:44:22.211 DEBUG: SCM revision ID '27f6b1cbdb43bd7056b9383d31f82ba40435e209'
14:44:22.416 INFO: Analysis report generated in 211ms, dir size=900.6 kB
14:44:22.548 INFO: Analysis report compressed in 132ms, zip size=142.1 kB
14:44:22.549 INFO: Analysis report generated in C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build_New\SSTR\FileTransferService\FileTransferService\.scannerwork\scanner-report

Hi,

You are not using SonarScanner for .NET. You are using the .NET distribution of SonarScanner CLI.

 
HTH,
Ann

Hi Ann,

Please find the updated configuration and logs.

While using below configuration sonar.exclusion/inclusion properties are not working.

C:\Jenkins\tools\sonar-scanner-9.0.2\SonarScanner.MSBuild.exe begin /k:"FileTransferService-04.00.00_int" /n:"FileTransferService" /v:"04.00.00" /d:sonar.host.url="http://******:9000" /d:sonar.login="sqa_****" 
/d:sonar.sources="%WORKSPACE%/SSTR/FileTransferService/FileTransferService"
/d:sonar.inclusions="**/FileTransferService/**"
/d:sonar.exclusions="**/FileTransferServiceDeploy/** , **/FileTransferSetupWizard/** ,**/FileTrsfSrvUnitTest/**"

dotnet build %WORKSPACE%\SSTR\FileTransferService\FileTransferService.sln

C:\Jenkins\tools\sonar-scanner-9.0.2\SonarScanner.MSBuild.exe end /d:sonar.login="sqa_*****"

Logs are below.

st\app-indadmin@AMKSW21079 C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build>C:\Jenkins\tools\sonar-scanner-9.0.2\SonarScanner.MSBuild.exe begin /k:"FileTransferService-04.00.00_int" /n:"FileTransferService" /v:"04.00.00" /d:sonar.host.url="http://******:9000" /d:sonar.login="sqa_889005a0dba662f3c1511049121e9632020b0905"  
SonarScanner for MSBuild 9.0.2
Using the .NET Framework version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories...
13:31:00.642  Updating build integration targets...
13:31:01.074  Using SonarQube v9.9.5.90363.
13:31:01.135  Fetching analysis configuration settings...
13:31:01.39  Provisioning analyzer assemblies for cs...
13:31:01.391  Installing required Roslyn analyzers...
13:31:01.392  Processing plugin: csharp version 8.51.0.59060
13:31:01.54  Processing plugin: vbnet version 8.51.0.59060
13:31:01.635  Provisioning analyzer assemblies for vbnet...
13:31:01.635  Installing required Roslyn analyzers...
13:31:01.635  Processing plugin: csharp version 8.51.0.59060
13:31:01.636  Processing plugin: vbnet version 8.51.0.59060
13:31:01.65  Incremental PR analysis: Base branch parameter was not provided.
13:31:01.65  Cache data is empty. A full analysis will be performed.
13:31:01.691  WARNING: Multi-Language analysis is enabled. If this was not intended and you have issues such as hitting your LOC limit or analyzing unwanted files, please set "/d:sonar.scanner.scanAll=false" in the begin step.
13:31:01.853  Pre-processing succeeded.

st\app-indadmin@AMKSW21079 C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build>/d:sonar.projectBaseDir= "C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build/SSTR/FileTransferService/FileTransferService"  /d:sonar.sources="C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build/SSTR/FileTransferService/FileTransferService" 
The filename, directory name, or volume label syntax is incorrect.

st\app-indadmin@AMKSW21079 C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build>/d:sonar.inclusions="**/FileTransferService/**" 
The filename, directory name, or volume label syntax is incorrect.

st\app-indadmin@AMKSW21079 C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build>/d:sonar.exclusions="**/FileTransferServiceDeploy/** , **/FileTransferSetupWizard/** ,**/FileTrsfSrvUnitTest/**" 
The filename, directory name, or volume label syntax is incorrect.

st\app-indadmin@AMKSW21079 C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build>dotnet build C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build\SSTR\FileTransferService\FileTransferService.sln 
  Determining projects to restore...
  All projects are up-to-date for restore.

st\app-indadmin@AMKSW21079 C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build>C:\Jenkins\tools\sonar-scanner-9.0.2\SonarScanner.MSBuild.exe end /d:sonar.login="sqa_889005a0dba662f3c1511049121e9632020b0905" 
SonarScanner for MSBuild 9.0.2
Using the .NET Framework version of the Scanner for MSBuild
Post-processing started.
13:31:16.537  Starting with Scanner for .NET v8 the way the `sonar.projectBaseDir` property is automatically detected has changed and this has an impact on the files that are analyzed and other properties that are resolved relative to it like `sonar.exclusions` and `sonar.test.exclusions`. If you would like to customize the behavior, please set the `sonar.projectBaseDir` property to point to a directory that contains all the source code you want to analyze. The path may be relative (to the directory from which the analysis was started) or absolute.
Calling the TFS Processor executable...
The TFS Processor has finished
Calling the SonarScanner CLI...
INFO: Scanner configuration file: C:\Jenkins\tools\sonar-scanner-9.0.2\sonar-scanner-5.0.1.3006\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build\.sonarqube\out\sonar-project.properties
INFO: SonarScanner 5.0.1.3006
INFO: Java 17.0.12 Eclipse Adoptium (64-bit)
INFO: Windows Server 2019 10.0 amd64
INFO: User cache: C:\Users\app-indadmin\.sonar\cache
INFO: Analyzing on SonarQube server 9.9.5.90363
INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=116ms
INFO: Server id: 30FB9F06-AY8zM2CXgcLfN9a6beAY
INFO: User cache: C:\Users\app-indadmin\.sonar\cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=73ms
INFO: Load/download plugins (done) | time=410ms
INFO: Process project properties
INFO: Process project properties (done) | time=23ms
INFO: Execute project builders
INFO: Execute project builders (done) | time=82ms
INFO: Project key: FileTransferService-04.00.00_int
INFO: Base dir: C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build
INFO: Working dir: C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build\.sonarqube\out\.sonar
INFO: Load project settings for component key: 'FileTransferService-04.00.00_int'
INFO: Load project settings for component key: 'FileTransferService-04.00.00_int' (done) | time=17ms
INFO: Auto-configuring with CI 'Jenkins'
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=85ms
INFO: Load active rules
INFO: Load active rules (done) | time=1301ms
INFO: Load analysis cache
INFO: Load analysis cache (2.0 kB) | time=17ms
INFO: Load project repositories
INFO: Load project repositories (done) | time=28ms
INFO: Indexing files...
INFO: Project configuration:
INFO: Indexing files of module 'FileTrsfSrvUnitTest'
INFO:   Base dir: C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build\SSTR\FileTransferService\FileTrsfSrvUnitTest
INFO:   Test paths: obj/FileTrsfSrvUnitTest.csproj.nuget.dgspec.json, obj/project.a...
INFO: Indexing files of module 'FileTransferSetupWizard'
INFO:   Base dir: C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build\SSTR\FileTransferService\FileTransferSetupWizard
INFO:   Source paths: ConfigType.cs, ConfigurationMgmt.cs, FileMgmt.cs, FormSetupWi...
INFO: Indexing files of module 'FileTransferService'
INFO:   Base dir: C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build\SSTR\FileTransferService\FileTransferService
INFO:   Source paths: appsettings.Development.json, appsettings.json, obj/FileTrans...
INFO: Indexing files of module 'FileTransferService'
INFO:   Base dir: C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build
INFO:   Source paths: bin/appsettings.Development.json, bin/appsettings.json, bin/F...
INFO: 112 files indexed
INFO: 0 files ignored because of scm ignore settings
INFO: Quality profile for cs: Sonar way
INFO: Quality profile for json: Sonar way
INFO: Quality profile for xml: Sonar way
INFO: ------------- Run sensors on module FileTransferSetupWizard
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=58ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=40ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=16ms
INFO: Sensor CSS Rules [javascript]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor CSS Rules [javascript] (done) | time=0ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=1ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Roslyn version: 4.11.0.0
INFO: Language version: CSharp12
INFO: Concurrent execution: enabled
INFO: Sensor C# Analysis Log [csharp] (done) | time=10ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=2ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=2ms
INFO: Sensor TextAndSecretsSensor [text]
INFO: 14 source files to be analyzed
INFO: 14/14 source files have been analyzed
INFO: Sensor TextAndSecretsSensor [text] (done) | time=89ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
INFO: Sensor VB.NET Analysis Log [vbnet]
INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=27ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
INFO: Sensor IaC Docker Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Docker Sensor [iac] (done) | time=67ms
INFO: ------------- Run sensors on module FileTrsfSrvUnitTest
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=0ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=1ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=1ms
INFO: Sensor CSS Rules [javascript]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor CSS Rules [javascript] (done) | time=0ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=1ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Roslyn version: 4.11.0.0
INFO: Language version: CSharp12
INFO: Concurrent execution: enabled
INFO: Sensor C# Analysis Log [csharp] (done) | time=1ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=1ms
INFO: Sensor TextAndSecretsSensor [text]
INFO: 35 source files to be analyzed
INFO: 35/35 source files have been analyzed
INFO: Sensor TextAndSecretsSensor [text] (done) | time=249ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=0ms
INFO: Sensor VB.NET Analysis Log [vbnet]
INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=0ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=1ms
INFO: Sensor IaC Docker Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Docker Sensor [iac] (done) | time=7ms
INFO: ------------- Run sensors on module FileTransferService
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=0ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=66ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=34ms
INFO: Sensor CSS Rules [javascript]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor CSS Rules [javascript] (done) | time=0ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=0ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Roslyn version: 4.11.0.0
INFO: Language version: CSharp12
INFO: Concurrent execution: enabled
INFO: Sensor C# Analysis Log [csharp] (done) | time=1ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=1ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=0ms
INFO: Sensor XML Sensor [xml]
INFO: 1 source file to be analyzed
INFO: 1/1 source file has been analyzed
INFO: Sensor XML Sensor [xml] (done) | time=279ms
INFO: Sensor TextAndSecretsSensor [text]
INFO: 39 source files to be analyzed
INFO: 39/39 source files have been analyzed
INFO: Sensor TextAndSecretsSensor [text] (done) | time=241ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=0ms
INFO: Sensor VB.NET Analysis Log [vbnet]
INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=0ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
INFO: Sensor IaC Docker Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Docker Sensor [iac] (done) | time=7ms
INFO: ------------- Run sensors on module FileTransferService
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=47ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=27ms
INFO: Sensor CSS Rules [javascript]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor CSS Rules [javascript] (done) | time=0ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=0ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Sensor C# Analysis Log [csharp] (done) | time=0ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=14ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=1ms
INFO: Sensor TextAndSecretsSensor [text]
INFO: 16 source files to be analyzed
INFO: 16/16 source files have been analyzed
INFO: Sensor TextAndSecretsSensor [text] (done) | time=41ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=0ms
INFO: Sensor VB.NET Analysis Log [vbnet]
INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=0ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
INFO: Sensor IaC Docker Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Docker Sensor [iac] (done) | time=6ms
INFO: ------------- Run sensors on project
INFO: Sensor C# [csharp]
INFO: Importing results from 6 proto files in 'C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build\.sonarqube\out\0\output-cs'
INFO: Importing results from 6 proto files in 'C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build\.sonarqube\out\2\output-cs'
INFO: Importing results from 6 proto files in 'C:\Jenkins_agent\workspace\SSTR\FileTransferService-04.00.00_Build\.sonarqube\out\1\output-cs'
INFO: Importing 3 Roslyn reports
INFO: Found 3 MSBuild C# projects: 2 MAIN projects. 1 TEST project.
INFO: Sensor C# [csharp] (done) | time=4562ms
INFO: Sensor Analysis Warnings import [csharp]
INFO: Sensor Analysis Warnings import [csharp] (done) | time=10ms
INFO: Sensor C# File Caching Sensor [csharp]
INFO: Sensor C# File Caching Sensor [csharp] (done) | time=45ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=86ms
INFO: CPD Executor Calculating CPD for 28 files
INFO: CPD Executor CPD calculation finished (done) | time=93ms
INFO: Analysis report generated in 268ms, dir size=2.1 MB
INFO: Analysis report compressed in 376ms, zip size=546.3 kB
INFO: Analysis report uploaded in 91ms
INFO: ANALYSIS SUCCESSFUL, you can find the results at: https://******/dashboard?id=FileTransferService-04.00.00_int
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at https://******/api/ce/task?id=AZNm9Bhz4SBFckDT4RvP
INFO: Executing post-job 'Final report'
INFO: Turn debug info on to get more details (sonar-scanner -X -Dsonar.verbose=true ...).
INFO: Analysis total time: 14.118 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 16.457s
INFO: Final Memory: 19M/70M
INFO: ------------------------------------------------------------------------
The SonarScanner CLI has finished
13:31:34.472  Post-processing succeeded.

Hi,

The initial complaint was that C# files weren’t being analyzed.

Are they being analyzed with the SonarScanner for .NET?

 
Ann