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.

CodeSonar® 9.2p0 CONFIDENTIAL CodeSecure Inc
C and C++
C#
Third-Party External

CodeSonar Plug-in for Visual Studio: Setting Up [Windows only]

This section explains how to install and configure the CodeSonar plug-in for Visual Studio.



Prerequisites

Before installing the CodeSonar plug-in for Visual Studio, ensure that all of the following are installed. For detailed instructions, see Prerequisite Details.

Note

In this section (and throughout this manual), $CSONAR indicates the CodeSonar installation directory.

Prerequisite Details

Follow these instructions to ensure all prerequisites for installing the CodeSonar plug-in for Visual Studio have been satisfied.

  1. If CodeSonar is not already installed, install it now.
  2. If Visual Studio is not already installed, install it now:
    1. Download the appropriate version of Visual Studio for your local operating system.
    2. Extract the package on your machine.
    3. Follow any additional instructions provided in the package INSTALL and README files.
  3. Start Visual Studio.
  4. Go on to Install the CodeSonar Plug-in.

Install the CodeSonar Plug-in

To install the CodeSonar plug-in:

  1. Open the CodeSonar configuration tool.
  2. 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.

    Dialogs will be presented one at a time: once any requested installations have completed, the next dialog will be presented.
  3. For each of the VSIX Installer dialogs, do the following.
    1. 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.
    2. 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.
  4. Click Finish to exit the Setup Wizard.
  5. Press Enter in the configuration tool to complete the installation and return to the main menu.

Uninstall the CodeSonar Plug-in

You can uninstall the CodeSonar plug-in for Visual Studio from the Visual Studio Extension Manager.

  1. Open Visual Studio if it is not already open.
  2. Open the Extension Manager. The mechanism differs slightly depending on your Visual Studio version:
  3. If the Installed submenu is not expanded, click to expand it.
  4. If Installed > All is not selected, click to select it.

    The Extension Manager will show a list of all installed extensions.

  5. 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.

  6. Click the Close button to close the Extension Manager.
  7. Quit Visual Studio.

    Visual Studio will uninstall the extension.

When You Upgrade Visual Studio

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.

When You Upgrade CodeSonar

Once you have upgraded CodeSonar, upgrade your plug-in installations.

The upgrade process depends on the CodeSonar version that you are upgrading from.

Now that the CodeSonar plug-in is installed, you can:

Visual Studio Plug-in Links

The following sections provide detailed information about installing and using the CodeSonar plug-in for Visual Studio.

 

To report problems with this documentation, please visit https://support.codesecure.com/.