JavaScript is not currently enabled, but is required for full
CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable
JavaScript in your browser: you will also need it for GUI
functionality.
If you opened this file directly from disk, your browser may be
directly suppressing JavaScript functionality: certain browsers
perform this suppression on local files (but not files delivered by
web servers) for security reasons.
-
If you access the manual through the hub's Web GUI, the
functionality will not be suppressed because the hub is a web
server.
-
Alternatively, your browser may allow you to explicitly
disable the security setting that suppresses functionality. See
the CodeSonar
FAQ for more information.
CodeSonar Plug-in for Visual Studio: Setting Up [Windows
only]
Before installing the CodeSonar plug-in for Visual Studio, ensure
that all of the following are installed. For detailed instructions,
see Prerequisite Details.
- CodeSonar
- Visual Studio:
- Visual Studio 2017 version 15.3.5 or later and .NET
Framework 4.6.2 or later, or
- Visual Studio 2019 and .NET Framework 4.6.2 or later,
or
- Latest available version of Visual Studio 2022 and .NET
Framework 4.7.2 or later.
- The Microsoft Edge WebView2 runtime must be
installed.
- If Visual Studio is installed in a system folder (such as
Program Files), you will need administrative privileges to install
the plug-in.
Note
In this section (and throughout
this manual), $CSONAR indicates the
CodeSonar
installation directory.
- If you have defined environment variable CSONAR to the
location of the CodeSonar installation
directory, you can use $CSONAR directly in
your command lines. On Windows systems, use
%CSONAR% in
place of $CSONAR.
- If you don't want to use environment variables,
replace $CSONAR with the
path to your CodeSonar
installation directory before using the command
lines.
Follow these instructions to ensure all prerequisites for
installing the CodeSonar plug-in for Visual Studio have been
satisfied.
- If CodeSonar is not already installed, install it now.
-
If Visual Studio
is not already installed, install it now:
- Download the appropriate version of Visual
Studio for your local operating system.
- Extract the package on your machine.
- Follow any additional instructions provided in the package
INSTALL and README files.
- Start Visual Studio.
- Go on to Install the CodeSonar
Plug-in.
To install the CodeSonar plug-in:
- Open the CodeSonar
configuration tool.
- Select main menu option 4
Install Visual Studio plugin and press Enter.
You will see up to two VSIX Installer dialogs, depending on
the versions of Visual Studio you have installed. There is a
separate dialog for each of the following.
- Visual Studio 2017 and Visual Studio 2019 (32-bit
plug-in)
- Visual Studio 2022 (64-bit plug-in)
Dialogs will be presented one at a time: once any requested
installations have completed, the next dialog will be presented.
- For each of the VSIX Installer dialogs, do the following.
- Select the version or versions of Visual Studio for which
you wish to install the CodeSonar plug-in.
Do not select "Express" versions: extensions such as
the CodeSonar plug-in are not supported in express versions of
Visual Studio.
- Click Install to start the installation, or
Cancel if you don't want to install the plug-in for
any of the listed Visual Studio versions.
If there are any problems, the installer will report them and
provide a link to the install log.
- Click Finish to exit the Setup Wizard.
- Press Enter in the configuration tool
to complete the installation and return to the main menu.
You can uninstall the CodeSonar plug-in for Visual Studio from the
Visual Studio Extension Manager.
- Open Visual Studio if it is not already open.
- Open the Extension Manager. The mechanism differs slightly
depending on your Visual Studio version:
- Visual Studio 2015 and Visual Studio 2017: select
Tools > Extensions and Updates...
- Visual Studio 2019 and Visual Studio 2022: select
Extensions > Manage Extensions
- If the Installed submenu is not expanded, click to
expand it.
- If Installed > All is not selected, click to select
it.
The Extension Manager will show a list of all installed
extensions.
- Find the CodeSonar for Visual Studio entry in the list
and click the Uninstall button for this entry.
Note that the Uninstall button may appear to be
disabled. Click it anyway.
- Click the Close button to close the Extension
Manager.
- Quit Visual Studio.
Visual Studio will uninstall the extension.
| Upgrading from MSVS 2015 |
Manually uninstall the plug-in, then
install the plug-in for your upgraded MSVS version. |
| Upgrading from MSVS 2017 |
You can install the plug-in for your upgraded MSVS version
without needing to manually uninstall the previous version of the
CodeSonar plug-in. |
| Upgrading from MSVS 2019 |
You can install the plug-in for your upgraded MSVS version
without needing to manually uninstall the previous version of the
CodeSonar plug-in. |
Once you have upgraded CodeSonar, upgrade your plug-in
installations.
The upgrade process depends on the CodeSonar version that you are
upgrading from.
- from CodeSonar 7.4 or earlier: manually uninstall the plug-in, then work through the
plug-in installation process to install the upgraded plug-in.
- Otherwise: you can work through the plug-in installation
process to install the upgraded plug-in without needing to manually
uninstall the previous version of the CodeSonar plug-in.
Now that the CodeSonar plug-in is installed, you can:
The following sections provide detailed information about
installing and using the CodeSonar plug-in for Visual Studio.