Disable SonarLint for Visual Studio for specific Solutions/Projects

3,169 views
Skip to first unread message

te...@fastec.de

unread,
Apr 6, 2016, 5:01:53 AM4/6/16
to SonarLint
Hallo,

is there a way to disable SonarLint for Visual Studio for a specific Solution?
We have one Visual Studio Solution containing about 80 projects.
I want to analyze the solution only during its TFS build process but not while developing in Visual Studio because it slows down the whole Visual Studio instance.
It is time-consuming the enable/disable the SonarLint plugin every time I open the mentioned solution.

Daniel

Tamas Vajk

unread,
Apr 6, 2016, 5:18:57 AM4/6/16
to te...@fastec.de, SonarLint
Hello Daniel,

This solution is not specific to SonarLint, it works with all Visual Studio Extensions. Visual Studio can be started in hives, which have their own setting, so you can set up a hive to have SonarLint and another to not have it. To start VS in a given hive, you should call devenv.exe /rootsuffix MyHiveWithSonarLint

This idea is widely used in VS, for example the "Start Experimental Instance of Visual Studio 2015" shortcut does this with the "Exp" hive.

Also, depending on your exact need, if you want to analyze the solution only as part of a CI job, you should set up a SonarQube server, configure it, and then use the SonarQube Scanner for MSBuild. Check out the "Usage" section of the page for TFS integration.

Hope this helps,
Tamas

Tamas VAJK | SonarSource
Language Team

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/bb6ab396-71f1-45f3-9220-fbfb837c2792%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

te...@fastec.de

unread,
Apr 6, 2016, 7:07:12 AM4/6/16
to SonarLint, te...@fastec.de
Hi Tomas,

thank you for this solution.
It's a good option that helps.

We are using a SonarQube server connected to our TFS CI.
My only problem was to use the SonarLint plugin in VS for all solutions except one.

Thanks
Daniel
Reply all
Reply to author
Forward
0 new messages