Previous versions
Everything you need to know about installing and running previous versions of SonarQube for Visual Studio.
Please remember that SonarSource officially supports only the latest version of SonarQube for Visual Studio.
Installing previous versions
You can install an earlier version by downloading the appropriate asset from the Releases page before following the Offline installation instructions.
Legacy Connected Mode
Connection setup for version 8.6 and earlier
Unbinding a project
To unbind a SonarQube Server or SonarQube Cloud project, delete the bindings folder associated with your project.
Each bound solution will have a unique folder in the %AppData%\Roaming\SonarLint for Visual Studio\Bindings
folder; delete the correct project folder to remove the binding.
SonarQube for Visual Studio versions 8.9 and earlier, must use this procedure to unbind a project.
Updating your credentials
Unfortunately, you cannot update your SonarQube Server or SonarQube Cloud credentials in SonarLint for Visual Studio. Should, for example, your SonarQube Server or SonarQube Cloud user token expire and you want to keep using Connected Mode, you must delete and recreate the connection. Here is the procedure:
If you have any project bound to the connection you want to delete, first manually delete each binding (bound with that connection) as described above in Unbinding a project.
If there is no project binding, move on to Step 2.
Open the SonarLint Manage Project Binding wizard (Extensions > SonarLint > Connected Mode > Bind to SonarQube or SonarCloud…), select Manage connections and delete the connection you want to remove. You cannot delete a connection if it has a project binding.
Finally, recreate your connection with your new token and rebind your project.
Connection setup for version 8.3 and earlier
The Visual Studio Team Explorer window was used to set up connected mode in SonarLint for Visual Studio 8.3 and earlier. Here are the basic instructions for the first-time setup of Connected Mode and the details about how to save and share the setup with your team.
Connection setup for version 6.16 and earlier
Updating your credentials
Unfortunately, in all versions of SonarLint for Visual Studio in 8.4 and earlier, there is no SonarLint mechanism to update your SonarQube Server or SonarQube Cloud credentials if, for example, your token expires; however, the token is stored in the Windows Credential Manager and can be edited or deleted.
Navigate to the Windows Control Panel > User Accounts > Credential Manager > Windows Credentials and either update the password with your new token or delete your token. Then restart your IDE.
The name for your SonarQube credentials is:
Sonarlint.VisualStudio.Integration:<your-sonarqube-URL>
The name for your SonarCloud credentials is:
Sonarlint.VisualStudio.Integration:https://sonarcloud.io/<​your-sonarcloud-organization>
If you choose to delete the token, when you try to connect again, SonarLint will prompt you for a new token during the connection setup.
Connected Mode for C# and VB projects
Prior versions v7.2-current
Prior versions v4.13-7.2
File exclusions in 6.16 and earlier
In SonarLint for Visual Studio 6.16 and earlier, the sonar.settings.json file which saves the server defined file exclusions lives in the local .sonarlint folder.
You must manually Update your binding to refresh the sonar.setting.json file when changes are made in SonarQube Server or SonarQube Cloud; go Team Explorer > SonarQube, right-click the project whose binding you want to update, and select Update:

Rule severity mapping before v7.2
The Sonar rule severities defined by SonarQube Server or SonarQube Cloud are different than the severities defined by Visual Studio. The mapping from Sonar severities to Visual Studio severities is as follows:
Info
Info
Minor
Info
Major
Warning
Critical
Warning
Blocker
Warning
By default Sonar Critical
and Blocker
issues are not mapped to Visual Studio Error as this would cause IDE builds to fail. You can change that by enabling Treat warnings as errors
in your project properties in Visual Studio. If you are using Connected Mode, the rule severities defined in the Quality Profile will be used.
Versions prior to v4.34
This section describes the behavior of SonarLint versions 4.34 or older. Javascript analysis is enabled by default in versions 4.34+.
Out of the box, SLVS will analyze C#, VB.NET, and C or C++. Support for additional languages requires the download of another component, the SonarLint daemon. This simply requires clicking a button in the Tools
, Options
, SonarLint
tab as described below.
The only additional language currently supported is JavaScript, although it is likely this set of supported languages will increase in the future.
Enabling analysis of additional languages
To enable analysis of additional languages, select Tools, Options, SonarLint and click on the "Activate" button then clicking "OK". The SonarLint daemon binaries will be downloaded in the background, with the download progress being shown in the Visual Studio status bar.
Once the download has completed, JavaScript files will be analysed whenever you save them.
Specifying an alternative download location (SLVS v4.11 or later)
By default the additional binaries will be downloaded from the public site https://binaries.sonarsource.com/?prefix=Distribution/sonarlint-daemon/. If you are working in an environment in which developer machines do not have access to the public internet, you can host the required binaries yourself and set the environment variable SONARLINT_DAEMON_DOWNLOAD_URL
to tell SLVS where to find the binaries.
There are few restrictions:
the environment variable SONARLINT_DAEMON_DOWNLOAD_URL must be set before VS starts.
the URL must be absolute.
the daemon zip file must not be renamed i.e. it must in the format
sonarlint-daemon-{version}-windows.zip
.
Changes to C/C++ analysis in SLVS v4.12
Prior to SLVS v4.12 C++ was an additional language so C/C++ analysis would only occur if support for additional languages was enabled. Since v4.12 the C/C++ analysis binaries have been included in the SLVS VSIX so the SonarLint daemon is not required. If you were using SLVS to analyze C/C++ prior to v4.12, you no longer need to have support for additional languages enabled unless you also want JavaScript files to be analyzed.
The SonarLint daemon
Most of the Sonar analyzers are written in Java and so need to be run in a Java process. The SonarLint daemon is a Java component that runs in the background and hosts the supported Sonar analyzers. There is no need to have Java installed separately on your development machine - the SonarLint daemon download includes the necessary Java runtime files.
SLVS handles communication with the daemon behind the scenes. Informational messages about the daemon will appear in the SonarLint
pane of the Visual Studio Output
tool window. Otherwise, the existence of the daemon should be completely transparent to the end user: SonarLint for Visual Studio will take care of starting and stopping the daemon, passing files for analysis, processing the results, and displaying them in the Visual Studio Error List
.
The daemon will only be started when you open a file that can be analyzed by the daemon, and it will be closed automatically when you close the solution containing the file (note that this was not the case prior to SLVS v4.12; in older versions of SLVS the daemon would start when VS started).
You can use the Task Manager to check whether the daemon is running:
Field
Value
Process name
java.exe
Process description
OpenJDK Platform binary
File location
%LOCALAPPDATA%\SonarLint for Visual Studio\sonarlint-daemon-{version}-windows\jre\bin
Troubleshooting previous versions
Last updated
Was this helpful?