Skip to main content

IQ for Visual Studio 2019

Sonatype (Nexus) IQ Extension for Visual Studio provides component analysis for both the Community, Professional, and Enterprise versions of Visual Studio.

Compatibility

This extension works with VS 2015, VS 2017, and VS 2019 on Windows and Linux (if your Visual Studio can run on Linux using other extensions or plugins.)

It is not supported for Visual Studio on macOS.

Project Reference Managers

Projects created using a PackageReference format (as opposed to the older packages.config format) can be scanned, and individual dependencies can be remediated, however, due to a NuGet limitation, we are not able to automatically detect changes in the dependencies, so users will need to manually rescan.

External Libraries

At this time, the extension only supports the locally installed project cache libraries.

Installing IQ for Visual Studio

IQ for Visual Studio can be installed from within Visual Studio using the Extensions Manager or via the Microsoft Visual Studio Marketplace.

Configuring IQ for Visual Studio

Authorization using IQ Server Credentials

IQ Server options are available from within the Visual Studio Options dialog. A URL, Username, and Password can be entered at any time and an Application may be chosen for each solution when opened. The Verify button can be used to verify the connection if a solution is not opened:

180813907.png

Whereas the Reload button will load available applications when a solution is opened.

180813908.png

Using Certificate Authentication

Starting with version 1.3.0, the extension supports cert authentication.

180813909.png

Clicking the Select button, next to the Certificate field, will open a security dialog. By selecting a cert, typed credentials will empty out and certs will be used for authentication. To revert and use typed credentials, fill in the username and password fields.

180813910.png

Windows Security prompt will display options from the Personal Certificates store. Managing this store is accomplished by using MMC and the Certificates Snap-In. To provide additional choices, right-click the Certificates folder and follow the prompts to install a certificate. Note: Ensure the Trusted Root Certificate Authorities store contains a record for the IQ reverse proxy.

180813911.png

After clicking Verify and confirming a successful connection can be made, select an application from the dropdown and restart Visual Studio. Re-opening Visual Studio and the IQ extension will open a certificate prompt to re-establish a secure connection.

Using IQ for Visual Studio

The IQ for Visual Studio tool window can be accessed by clicking the Nexus IQ tab on the bottom tool strip of Visual Studio. If not accessible from there, it should also be available in View under Other Windows. Once configured and the component analysis is completed, a component view will look similar to the example displayed below. Component details are available by double-clicking on the component name in the Component list or via the View Details button in the component view once you have selected a component.

180813912.png

If you have selected a component with some threats (as above), you can select other versions in the Version Graph and then the View Details to find remediation options. Alternatively, IQ may present a recommended version that you can select and which will update the version graph.

180813913.png

When you select one of the recommended version links, or if you click on any of the versions in the Version Graph, the "Migrate to Selected" button will become enabled.

180813914.png

Clicking this button will update all projects where this component was present and migrate to the version you selected.