Sonascanner not scanning .PDB and .CS files

We have done all the Configurations but when we run it, we are getting success message. But .PDB and .CS files are getting ignored.

"WARN: File ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\bin\Release\netcoreapp2.2\LF.ESSMain.ModelCore.dll’ is ignored. It is not located in project basedir ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\sonar-scanner-cli-4.2.0.1873-windows\sonar-scanner-4.2.0.1873-windows\bin’.

WARN: File ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\bin\Release\netcoreapp2.2\LF.ESSMain.ModelCore.pdb’ is ignored. It is not located in project basedir ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\sonar-scanner-cli-4.2.0.1873-windows\sonar-scanner-4.2.0.1873-windows\bin’.

WARN: File ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\bin\Release\netcoreapp2.2\LF.ESSMain.MVCCore.deps.json’ is ignored. It is not located in project basedir ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\sonar-scanner-cli-4.2.0.1873-windows\sonar-scanner-4.2.0.1873-windows\bin’.

WARN: File ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\bin\Release\netcoreapp2.2\LF.ESSMain.MVCCore.dll’ is ignored. It is not located in project basedir ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\sonar-scanner-cli-4.2.0.1873-windows\sonar-scanner-4.2.0.1873-windows\bin’.

WARN: File ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\bin\Release\netcoreapp2.2\LF.ESSMain.MVCCore.pdb’ is ignored. It is not located in project basedir ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\sonar-scanner-cli-4.2.0.1873-windows\sonar-scanner-4.2.0.1873-windows\bin’.

WARN: File ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\bin\Release\netcoreapp2.2\LF.ESSMain.MVCCore.runtimeconfig.dev.json’ is ignored. It is not located in project basedir ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\sonar-scanner-cli-4.2.0.1873-windows\sonar-scanner-4.2.0.1873-windows\bin’.

WARN: File ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\bin\Release\netcoreapp2.2\LF.ESSMain.MVCCore.runtimeconfig.json’ is ignored. It is not located in project basedir ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\sonar-scanner-cli-4.2.0.1873-windows\sonar-scanner-4.2.0.1873-windows\bin’.

WARN: File ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\bin\Release\netcoreapp2.2\LF.ESSMain.MVCCore.Views.dll’ is ignored. It is not located in project basedir ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\sonar-scanner-cli-4.2.0.1873-windows\sonar-scanner-4.2.0.1873-windows\bin’.

WARN: File ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\bin\Release\netcoreapp2.2\LF.ESSMain.MVCCore.Views.pdb’ is ignored. It is not located in project basedir ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\sonar-scanner-cli-4.2.0.1873-windows\sonar-scanner-4.2.0.1873-windows\bin’.

WARN: File ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\bin\Release\netcoreapp2.2\Properties\launchSettings.json’ is ignored. It is not located in project basedir ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\sonar-scanner-cli-4.2.0.1873-windows\sonar-scanner-4.2.0.1873-windows\bin’.

WARN: File ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\bin\Release\netcoreapp2.2\Select.Html.dep’ is ignored. It is not located in project basedir ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\sonar-scanner-cli-4.2.0.1873-windows\sonar-scanner-4.2.0.1873-windows\bin’.

WARN: File ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\bin\Release\netcoreapp2.2\web.config’ is ignored. It is not located in project basedir ‘E:\Code\Code\LF.ESSMain\LF.ESSMain.MVCCore\sonar-scanner-cli-4.2.0.1873-windows\sonar-scanner-4.2.0.1873-windows\bin’."

Hi,
Your configuration is not correct.
The logs show that base directory is set to the bin directory of the scanner, when in fact it should be pointing to the base directory of the project being analyzed.

@dmeneses Can you please provide the steps or document so that it will help us in doing configuration and work on that.

You can find documentation about the scanners here: https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/

What properties are you passing to the scanner through the command line anr/or properties file?