Requirements
The software requirements to run SonarQube for Visual Studio in your IDE.
Each IDE extension of SonarQube for IDE has its own requirements to work properly with the most recent releases.
Overview
SonarQube for Visual Studio is available for Visual Studio version 2026 & 2022.
SonarQube for Visual Studio is not supported on Visual Studio 2017 and 2019. Support for Visual Studio 2017 ended on March 1, 2022, and support for Visual Studio 2019 ended in April 2024. These extension packages will not be updated or rebuilt.
The Visual Studio 2019 package contains a build certificate that expired in 2023. Installation can fail, and the expired certificate is a security risk in environments with strict security requirements. Microsoft supports Visual Studio 2019 itself until April 2029, but that does not extend to this extension. Use SonarQube for Visual Studio with Visual Studio 2022 or 2026.
The only thing you need to install is the SonarQube for IDE VSIX available on the Visual Studio Marketplace. Please see the Installation for complete install instructions.
SonarQube for Visual Studio needs a Java Runtime (JRE) to operate and uses by default its own JRE.
If you want to use your own JRE:
The minimum JRE version requirement for SonarQube for Visual Studio version 10.0 is Java 21.
Specify the JRE path as follows:
In Visual Studio, go to Extensions > SonarQube > Options… > SonarQube > General > Java Home.
Enter the path to your JRE.
Restart your IDE to apply the setting.

In versions prior to v4.34, additional steps were required for some languages. See below for more details.
Supported IDEs
See the Sonar website for information about the currently supported IDEs, and also for details about which languages are supported in which IDEs.
Unsupported IDEs
SonarQube for Visual Studio is not currently available for Visual Studio for Mac. However, it is still possible to use the Sonar C# and VB.NET analyzers in that IDE with a little manual configuration.
Support for analyzing C# and VB.NET in other IDEs
Visual Studio for Mac supports the running of Roslyn analyzers that are shipped as NuGet packages. This includes Sonar C# and VB.NET rules.
The NuGet package id for the Sonar C# rules is SonarAnalyzer.CSharp. The NuGet package id for the Sonar VB.NET rules is SonarAnalyzer.VisualBasic
See below for information on setting up analysis in specific IDEs.
Visual Studio for Mac
To configure a project to use the Sonar C# analyser, edit the project file to include the following XML:
Use SonarAnalyzer.VisualBasic instead of SonarAnalyzer.CSharp to configure the Sonar VB.NET analyzer.
Note that instead of editing every project file, you can create a single Directory.Build.props file at the solution level or repo level that will apply to all projects in the solution/repo.
It is possible to add references to NuGet packages through the UI but that will not add the necessary Analyzer entries in the project file; you must still add them manually by directly editing the project file. See this StackOverflow post for more information.
Language-specific requirements
C and C++ analysis-specific requirements
Downloading the CFamily analyzer
The CFamily analyzer is not included with the release files to optimize download times. After you install SonarQube for IDE, a download of the CFamily analyzer starts automatically therefore, an internet connection is required.
Last updated
Was this helpful?




