Encoding detected by Roslyn and encoding used by SonarQube do not match for file

dotnet
scanner
encoding

(Hilal Emeksiz) #1

Hello sonar analysis is made on windows jenkins, sonarqube version is 7.0 and we use
“sonar-scanner-msbuild-4.3.1.1372-net46” and “msbuild 15.0” for c# projects.
Although I set sonar.sourceEncoding=windows-1252 in the directory
"sonar-scanner-msbuild-4.3.1.1372-net46\sonar-scanner-3.2.0.1227\conf " and in the named file sonar-scanner.properties; the error does not change.
When I build the c# project with msbuild 14.0 , I do not encounter this problem.
Your help is appreciated.

WARNING: WARN: Encoding detected by Roslyn and encoding used by SonarQube do not match for file C:\HudSlvNEW\workspace\BFA_4_NET_WINDOWS_MSBUILD15\ORT_MUHASEBESLN_FINORT\MuhasebeBL\General.cs. SonarQube encoding is 'windows-1252', Roslyn encoding is 'windows-1254'. File will be skipped.
WARNING: WARN: Encoding detected by Roslyn and encoding used by SonarQube do not match for file