WARN Your project contains C# files which cannot be analyzed with the scanner you are using. To ana

Please help us we are getting below error while running sonarqube analysis for c# .netframework project
we also tried running commands suggested in below link but we are still facing issue
SonarScanner.MSBuild.exe begin /k:“project-key” /d:sonar.token=“” /d:sonar.host.url=“http://localhost:9000
MSBuild.exe <path to project file or .sln file> /t:Rebuild
SonarScanner.MSBuild.exe end /d:sonar.token=“”

“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 SonarScanner for .NET

Hi,

Welcome to the community!

It sounds like you’re using an old version of the SonarScanner for .NET? Can you try upgrading?

 
Thx,
Ann