Running SonarQube against an ASP.Net Core solution/project

后端 未结 3 1571
一向
一向 2020-12-17 10:41

SonarQube has an MSBuild runner but .NET Core uses dotnet.exe to compile and msbuild just wraps that. I have tried using the MSBuild runner with no success against my ASP.NE

3条回答
  •  不思量自难忘°
    2020-12-17 11:12

    I was able to get .NET Core builds working from the procedure on their site, with two things I'd like to point out….

    • When you run the SonarQube.Scanner.MSBuild.exe command lines, you must be in the same directory as your project file, and the location directory of the end command must match the start.
    • When the instructions say you must modify sonar.host.url to point to your server, you must uncomment the entire section of the file before doing the modification. Otherwise you've just inserted your server into a sonar.host.url line that is dead because it is commented out. This made me spin for a while before I really looked….

提交回复
热议问题