
- HOW TO MULTIPLE SOLUTIONS IN VISUAL STUDIO 2015 HOW TO
- HOW TO MULTIPLE SOLUTIONS IN VISUAL STUDIO 2015 INSTALL
- HOW TO MULTIPLE SOLUTIONS IN VISUAL STUDIO 2015 UPDATE
So far it only contained SonarSource’s analyzers, which were recently renamed “Sonar Analyzers for C# and VB”. SonarLint for Visual Studio has been releasing regularly both as a VSIX, and a NuGet package. We really need some automation here! The “SonarQube connected mode” Released part of SonarLint for Visual Studio 2.0 and aboveįortunately, we added a new “Visual Studio connected mode for SonarQube” part of SonarLint for Visual Studio 2.0.
HOW TO MULTIPLE SOLUTIONS IN VISUAL STUDIO 2015 UPDATE
Also when the quality profile changes in SonarQube, we would need to update each project of each solution that should match this quality profile. But this is tedious, error prone, and needs to be done on each project. The solution would be for my team to add the right Roslyn analyzers to every project in the solution, and configure the rulesets for these so that they match the Quality profile. Indeed, the rulesets would need to be configured to match the rules that are activated in the SonarQube quality profile. Even if the right analyzers or the right VSIXes had been added, that would not solve the consistency problem.
HOW TO MULTIPLE SOLUTIONS IN VISUAL STUDIO 2015 INSTALL
Note that most analyzers also come as a VSIX, but to get consistent results every team member must install the right versions of the right VSIXes on their machine. Whereas in SonarQube, we have seen that our team had installed several plug-ins for Roslyn analyzers and we have activated rules in the quality profile. The Roslyn analyzers which are ran are not the same: if I look under the References | Analyzers node of each project in the Visual Studio solution, I see that they are empty. There are two causes to these differences between the issues reported in the build and in the IDE. That’s what I want: be notified of the issues that matter for my team or organization, as I introduce them, in the IDE Why do we get different results? I know that this is possible in VS 2015 to be notified of issues as I type them, as there is just-in-time static analysis provided by Roslyn analyzers. Now you can imagine my frustration since in Visual Studio, I could only see one warning. That’s annoying! I really don’t want to have my name here, in particular because the whole team is watching the dashboard. I dig into these errors, to understand more about them, and in particular who introduced them, and … I discover that it was me. I decide to dig into the issues and I notice that there are many errors, and in particular severe errors (15 critical, in C#). When the continuous integration build has completed and the SonarQube analysis is done, I click on the “analysis results” link in the build summary to navigate to the SonarQube project dashboard where I get a sense of the quality of my project. There is only one warning in Visual Studio. I work on a project, and commit my changes. The picture below shows these rules and the two “Rule repositories”. Then we have set a Quality profile which enables rules from the C# plug-in (really “Sonar Analyzers for C# and VB”) and from the Wintellect Roslyn Analyzers. We have used the SonarQube Roslyn SDK to build a SonarQube plugin that wraps the Wintellect Roslyn Analyzers. In SonarQube, we have installed the C# plug-in (version 5.0 or more recent). Let’s imagine that I’m a developer in a team who has enabled the SonarQube analysis build in the continuous integration. This situation happens because the definition of the quality in SonarQube is different from the configuration of the static analysis rules which run when building or editing in Visual Studio. But we also heard that this can be very frustrating for developers, as sometimes, they get notified during the build that they introduced new issues, whereas they would really like to be notified right when they develop in the IDE (in Visual Studio). We got the feedback that this is great, because you can measure your technical debt and its evolution. Continuous Integration builds or automated builds). In previous posts we have explained how you could setup a SonarQube analysis part of the non-dev builds (i.e. Analysis issues reported by build can be different from the ones in Visual Studio Non-Dev build results can be different from warnings in the IDE
HOW TO MULTIPLE SOLUTIONS IN VISUAL STUDIO 2015 HOW TO
Let’s see what problem we are solving here, and how to use this new feature. You can now bind a Visual Studio solution to a SonarQube project and see Roslyn analyzers automatically provisioned as NuGet packages, and rulesets configured, using the SonarQube Quality Profile for the project. In this blog post we are announcing that we have extended this experience to the IDE. This has been working for the continuous integration build. A few weeks ago, we announced the SonarQube scanner for MSBuild 2.0 supports 3rd party Roslyn analyzers.
