How can I use SonarQube to scan an ASPNET Core 1.1 project?

Deadly 提交于 2019-12-12 03:31:33

问题


I have my Mac setup with Jenkins and SonarQube and Docker to test automation. I also have the same setup on my Windows VM using VMWare and all the windows variants as well. My .NET application compiles well and I can run SonarQube after pulling from GitHub and running MSBuild.exe against it fine. But how can I do a similar process with the 'dotnet restore', 'dotnet publish' on my Mac with the .NET Open Source projects like ASPNET Core 1.1? I have not seen how to setup SonarQube to scan the ASPNET Core 1.1 or the DotNet Core 1.1 projects with any prebuild, build, postbuild steps from within Jenkins. Is there support for the ASPNET Core yet in SonarQube? Do I need a patch or to run a certain commandline group of scripts to do the same thing natively on my Mac? Any help is appreciated. I have searched for a few hours and have found nothing.


回答1:


The support of .NET Core projects is not yet available in the SonarQube Scanner for MSBuild. We are currently working on it and it should be available within the upcoming 2 weeks.

Feel free to watch SONARMSBRU-167 to follow the status.



来源:https://stackoverflow.com/questions/43048060/how-can-i-use-sonarqube-to-scan-an-aspnet-core-1-1-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!