如何使用SonarQube扫描ASPNET Core 1.1项目?

编程入门 行业动态 更新时间:2024-10-14 14:18:25
本文介绍了如何使用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项目?

本文发布于:2023-11-16 01:47:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1599891.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   项目   SonarQube   ASPNET   Core

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!