JetBrains / TeamCity.SonarQubePlugin

A plugin for TeamCity server allowing you to configure and run SonarQube analysis from the CI
Apache License 2.0
53 stars 31 forks source link

Add .NET Core scanner support #65

Open olsh opened 5 years ago

olsh commented 5 years ago

It would be nice to have runners for .NET Core version of the SonarQube scanner

dotnet <path to SonarScanner.MSBuild.dll> begin /k:"project-key" 
dotnet build <path to solution.sln>
dotnet <path to SonarScanner.MSBuild.dll> end 

https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-msbuild/

Dreamwalker666 commented 4 years ago

Just spent a long time trying to figure out why my scans weren't producing results...... it's a .NET core project.

Any news on this it's not like it's going to go away! or any work arounds?

n0mn0m commented 3 years ago

Similarly was fighting this error:

Cannot run process (file not found): mono /opt/buildagent/tools/sonar-scanner-msbuild.4.8.0.12008/MSBuild.SonarQube.Runner.exe

With a docker hosted agent, finally grabbed the sonar source and the exe isn't present in the net core releases.

Might be worth adding a table or something to the README indicating .NET, Sonar and agent host OS compat.

wrightsonm commented 3 years ago

is there a solution for this? i'm looking to get SonarQube running in TeamCity with .Net Core projects

matsandreassen commented 3 years ago

Same here! Ditto! +1 etc.

visujomu commented 1 year ago

Documentation states that the scanner compiled against .NET Framework is able to analyse .NET Core projects. .NET Framework is still limited to Windows platform.

Support of other scanner "flavours" is still an issue. Other .NET tools of TeamCity seem to move towards the "dotnet" environment.