针对 ASP.Net Core 解决方案/项目运行 SonarQube [英] Running SonarQube against an ASP.Net Core solution/project

查看:30
本文介绍了针对 ASP.Net Core 解决方案/项目运行 SonarQube的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SonarQube 有一个 MSBuild 运行程序,但 .NET Core 使用 dotnet.exe 进行编译,而 msbuild 只是包装了它.我曾尝试使用 MSBuild 运行器,但对我的 ASP.NET Core 解决方案没有成功.使用 SonarQube Scanner 有点效果.

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.NET Core solution. Using SonarQube Scanner works kind of.

关于如何在 .NET Core 中使用 SonarQube 的任何建议?静态代码分析正是我要找的.

Any suggestions on how I can utilize SonarQube with .NET Core? The static code analysis is what I am looking for.

推荐答案

.csproj 现在成为 事实上的格式 .Net Core 解决方案,SonarQube 对此类解决方案的支持带有 适用于 MSBuild v2.3 的 SonarQube 扫描仪 .

With .csproj now being the de-facto format of .Net Core solutions, SonarQube support of such solutions comes with the SonarQube Scanner for MSBuild v2.3 .

这篇关于针对 ASP.Net Core 解决方案/项目运行 SonarQube的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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