From SonarQube 7.7 to 8.2 no issues found with sonarscanner msbuild

Hi,

I’m Luca and may be I have the same problem.
It seems that the SonarScanner MSBuild has problem with the .cs files encoding and the Sensor c# not appear in the logs.

SonarScanner.MSBuild.exe end
SonarScanner for MSBuild 4.7.1
Using the .NET Framework version of the Scanner for MSBuild
Post-processing started.
WARNING: File 'C:\Users\user\.nuget\packages\t3.business.library\1.1.5\contentFiles\any\net461\Model\Proteo\ProteoModel.Context.tt' is not located under the root directory 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2' and will not be analyzed.
WARNING: File 'C:\Users\user\.nuget\packages\t3.business.library\1.1.5\contentFiles\any\net461\Model\Proteo\ProteoModel.tt' is not located under the root directory 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2' and will not be analyzed.
WARNING: File 'C:\Users\user\.nuget\packages\t3.business.library\1.1.5\contentFiles\any\net461\Model\ProteoSchemaOrario\ProteoSchemaOrarioModel.Context.tt' is not located under the root directory 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2' and will not be analyzed.
WARNING: File 'C:\Users\user\.nuget\packages\t3.business.library\1.1.5\contentFiles\any\net461\Model\ProteoSchemaOrario\ProteoSchemaOrarioModel.tt' is not located under the root directory 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2' and will not be analyzed.
WARNING: File 'C:\Users\user\.nuget\packages\t3.business.library\1.1.5\contentFiles\any\net461\Model\T3MF\T3MF_Model.Context.tt' is not located under the root directory 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2' and will not be analyzed.
WARNING: File 'C:\Users\user\.nuget\packages\t3.business.library\1.1.5\contentFiles\any\net461\Model\T3MF\T3MF_Model.tt' is not located under the root directory 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2' and will not be analyzed.
The SONAR_SCANNER_HOME environment variable is not required and will be ignored.
Calling the SonarQube Scanner...
INFO: Scanner configuration file: C:\sonar-scanner-msbuild-4.7.1.2311-net46\sonar-scanner-4.1.0.1829\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\.sonarqube\out\sonar-project.properties
INFO: SonarQube Scanner 4.1.0.1829
INFO: Java 11.0.5 Oracle Corporation (64-bit)
INFO: Windows 10 10.0 amd64
INFO: User cache: C:\Users\user\.sonar\cache
INFO: SonarQube server 8.2.0
INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=137ms
INFO: Server id: B5316926-AXGCmBU51FJ_hQfczZLA
INFO: User cache: C:\Users\user\.sonar\cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=50ms
INFO: Load/download plugins (done) | time=144ms
INFO: Process project properties
INFO: Process project properties (done) | time=37ms
INFO: Execute project builders
INFO: Execute project builders (done) | time=57ms
INFO: Project key: T3.Core.V1.Microservice
INFO: Base dir: C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2
INFO: Working dir: C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\.sonarqube\out\.sonar
INFO: Load project settings for component key: 'T3.Core.V1.Microservice'
INFO: Load project settings for component key: 'T3.Core.V1.Microservice' (done) | time=16ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=42ms
INFO: Detected Gitlab CI
INFO: Load active rules
INFO: Load active rules (done) | time=579ms
INFO: Indexing files...
INFO: Project configuration:
INFO: Indexing files of module 'T3.Core.V1.Microservice'
INFO:   Base dir: C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2
INFO:   Source paths: MediaFactorry/Enums.cs, Process/AciT3MF.cs, Commons.cs, DataA...
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\MediaFactorry\Enums.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Process\AciT3MF.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Commons.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\DataAdapter.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\DataModel.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Function.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\DataContract.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Process\AspidCallBack.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Process\Proteo.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Process\ReceiveMediaVerification.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Process\T3Mam.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Process\Ticket.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Proteo\DataContract.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Proteo\WebRequest.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Proxy\Galaxy.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Proxy\IcpAD.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Proxy\IcpFileUtility.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Proxy\icpIDGenerator.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Proxy\Solr.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Proxy\T3MF_Business.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Schema\SubTitle\Metadata.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Schema\MessaInOnda\Metadata.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Schema\RaiCom\Metadata.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Schema\TgrWeb\Metadata.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Process\SendAsset.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Service.svc.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\IService.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\Properties\AssemblyInfo.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\MediaFactorry\BaseTypes.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\MediaFactorry\ComplexTypes.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\MediaFactorry\MainTypes.cs' does not have encoding information. Skip it.
WARN: File 'C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2\MediaFactorry\Messages.cs' does not have encoding information. Skip it.
INFO: Indexing files of module 'T3.Core.V1.Microservice'
INFO:   Base dir: C:\Gitlab-Runner\builds\150d1cf2\0\Progettazione-Software\T3-MF-Integration\T3.Api.Gateway.V1.2
INFO: 157 files indexed
INFO: 0 files ignored because of scm ignore settings
INFO: Quality profile for xml: Sonar way
INFO: ------------- Run sensors on module T3.Core.V1.Microservice
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=21ms
WARNING: WARNING: An illegal reflective access operation has occurred
WARNING: WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/C:/Users/user/.sonar/cache/54f6535c111cefad0fb6a09ba3e61922/sonar-javascript-plugin.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
WARNING: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: WARNING: All illegal access operations will be denied in a future release
INFO: Sensor SonarCSS Rules [cssfamily]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=1ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=4ms
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=2ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=4ms
INFO: Sensor XML Sensor [xml]
INFO: 14 source files to be analyzed
INFO: Load project repositories
INFO: Load project repositories (done) | time=18ms
INFO: Sensor XML Sensor [xml] (done) | time=462ms
INFO: 14/14 source files have been analyzed
INFO: ------------- Run sensors on module T3.Core.V1.Microservice
INFO: Sensor SonarCSS Rules [cssfamily]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=0ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=0ms
INFO: ------------- Run sensors on project
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=5ms
INFO: CPD Executor Calculating CPD for 0 files
INFO: CPD Executor CPD calculation finished (done) | time=0ms
INFO: Analysis report generated in 99ms, dir size=204 KB
INFO: Analysis report compressed in 168ms, zip size=51 KB
INFO: Analysis report uploaded in 33ms
INFO: ANALYSIS SUCCESSFUL, you can browse https://sonarqube.prodtv.rai.it/dashboard?id=T3.Core.V1.Microservice
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://sonarqube.prodtv.rai.it/api/ce/task?id=AXGdJuJ5L1YxVljC21k8
INFO: Analysis total time: 4.402 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 6.139s
INFO: Final Memory: 13M/54M
INFO: ------------------------------------------------------------------------
The SonarQube Scanner has finished
16:31:43.585  Post-processing succeeded.
Job succeeded

Bye,
Luca