运行SonarQube针对ASP.Net核心解决方案/项目

SonarQube有一个MSBuild运行程序,但.NET Core使用dotnet.exe进行编译,并且msbuild只是包装它.我已经尝试使用MSBuild的运行程序,而不是我的ASP.NET Core解决方案的成功.使用SonarQube扫描仪工作.

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

解决方法

似乎.NET Core正在从project.json切换到使用.csproj和MSBuild.这可能在.NET Core 1.1或类似版本中可用.当时可能使用MSBuild来构建项目,并且选择SonarQube.

见:https://blogs.msdn.microsoft.com/dotnet/2016/05/23/changes-to-project-json/

这是否是一件好事还有待观察,我猜.

另请参阅此链接,以便在此期间使用MSBuild构建.NET Core项目的可能的解决方法(我还没有测试它):https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild

The .NET Core tooling is going to move from project.json to MSBuild based projects. We expect the first version of the .NET Core tools that use MSBuild to ship along with the next version of Visual Studio. However,it is possible to use MSBuild for .NET Core projects today,and this page shows how.

相关文章

这篇文章主要讲解了“WPF如何实现带筛选功能的DataGrid”,文...
本篇内容介绍了“基于WPF如何实现3D画廊动画效果”的有关知识...
Some samples are below for ASP.Net web form controls:(fr...
问题描述: 对于未定义为 System.String 的列,唯一有效的值...
最近用到了CalendarExtender,结果不知道为什么发生了错位,...
ASP.NET 2.0 page lifecyle ASP.NET 2.0 event sequence cha...