SonarQube有一个MSBuild运行程序,但.NET Core使用dotnet.exe进行编译,并且msbuild只是包装它.我已经尝试使用MSBuild的运行程序,而不是我的ASP.NET Core解决方案的成功.使用SonarQube扫描仪工作.
解决方法
似乎.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/@H_502_3@
这是否是一件好事还有待观察,我猜.@H_502_3@
另请参阅此链接,以便在此期间使用MSBuild构建.NET Core项目的可能的解决方法(我还没有测试它):https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild@H_502_3@
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.@H_502_3@