I was trying to use Sonarqube for my .NET 7 application.
When trying to execute dotnet sonarscanner begin /k:“dotnet-test”… command, I’m getting following error although I have .NET installed.
You must install .NET to run this application.
App: /Users/gimhanranasinghe/.dotnet/tools/dotnet-sonarscanner
Architecture: x64
App host version: 7.0.13
.NET location: Not found
Sorry, I didn’t read closely enough to notice before that you’re on a Mac. Are you running analysis from your localhost? And what version of .NET do you have installed?
I installed Sonarqube through zip file. I assume that folder is the folder which is mentioned in the given installation steps as <INSTALL_DIRECTORY> . But in that folder there are no folder called <INSTALL_DIRECTORY>/sonar-scanner-(version).