When use Sonarqube Cli MsBuild json files are not validate

Using sonarqube scanner cli msbuild are not validating json files like appsettings and not upload to the code tab on sonarqube community.

I already set “sonar.scanner.scanAll=true” in the properties but nothing different happened.

Hi,

Welcome to the community!

Which version of which scanner are you using?

 
Thx,
Ann

I was using the version 6.2.0, downloaded from github.

https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/6.2.0.85879/sonar-scanner-6.2.0.85879-net.zip

Hi,

That explains it. The scanAll option was introduced in 8.0. But you should go ahead and upgrade all the way to the current version, 9.0.0.

 
HTH,
Ann