Greetings, I searched a lot before opening this topic and unfortunately I didn’t find a solution.
I recently installed Sonarqube Community on an AWS instance
I downloaded the SonarScanner through this link, tested the .Net 5.0 packages and also the .Net 4.6, made the reference in environment variables and then ran the solution in Visual Studio, and then did the scan as directed by Sonarqube.
I used the following commands:
1º
"SonarScanner.MSBuild.exe begin /k: "aed2" /d:sonar.host.url="http://ip-server-sonarqube" /d:sonar.login="token""
2º
MsBuild.exe /t:Rebuild
3º
SonarScanner.MSBuild.exe end /d:sonar.login="token"
It is understood that the words token and ip-server-sonarqube have been replaced because they are sensitive information.
This is the error I get when I finish the scanning steps:
INFO: ------------- Run sensors on project
INFO: C# sensor [csharp]
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 https://redirect.sonarsource.com/doc/install-configure-scanner-msbuild.html
INFO: C# sensor [csharp] (done) | time=0ms
INFO: VB.NET sensor [vbnet] (done)
WARN: Your project contains VB.NET 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 https://redirect.sonarsource.com/doc/install-configure-scanner-msbuild.html
INFO: VB.NET sensor [vbnet] (done) | time=0ms
I also tested with jenkins and get the same error with both, can you help me?