Sonar Scan .sln project

I have sonarqube server version
sonar-scanner on other linux machine.
both are works fine (java
on linux
I want to scan sln project.

due to a lot of bureaucracy I am trying to make it easier.

  1. is it have to be over windows machine or there is a way which i can download the code and scan it on linux.

  2. is there a way to scan the code only, without compilation?

Hello GB,

A .NET Core project can be built and analyzed on linux. But note that doesn’t mean any project with a .sln file can be built that way. Compilation is necessary (in fact we recommend a full rebuild), as our scanner needs to see the build steps and compiler options used. If your code only builds on Windows, it will need to be scanned there as well.

Hope this helps!