如何使用SonarQube扫描ASPNET Core 1.1项目? [英] How can I use SonarQube to scan an ASPNET Core 1.1 project?

查看:123
本文介绍了如何使用SonarQube扫描ASPNET Core 1.1项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac上安装了Jenkins,SonarQube和Docker,以测试自动化.我也使用VMWare和所有Windows变体在Windows VM上进行了相同的设置.我的.NET应用程序编译良好,在从GitHub提取并对其运行MSBuild.exe之后,我可以运行SonarQube.但是,如何在Mac上通过ASP.NET Core 1.1之类的.NET开放源代码项目对"dotnet restore","dotnet publish"进行类似的处理?我还没有看到如何通过Jenkins中的任何预构建,构建,后构建步骤来设置SonarQube来扫描ASPNET Core 1.1或DotNet Core 1.1项目. SonarQube中是否还支持ASPNET Core?我是否需要修补程序或运行特定的命令行脚本组才能在Mac上本地执行相同的操作?任何帮助表示赞赏.我搜索了几个小时,却一无所获.

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.

推荐答案

SonarQube Scanner for MSBuild尚不支持.NET Core项目.我们目前正在研究它,它应该在接下来的2周内可用.

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.

可以随时观看 SONARMSBRU-167 来关注状态.

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

这篇关于如何使用SonarQube扫描ASPNET Core 1.1项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆