NuGet.VisualStudio 17.13.2

Prefix Reserved
dotnet add package NuGet.VisualStudio --version 17.13.2
                    
NuGet\Install-Package NuGet.VisualStudio -Version 17.13.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NuGet.VisualStudio" Version="17.13.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NuGet.VisualStudio" Version="17.13.2" />
                    
Directory.Packages.props
<PackageReference Include="NuGet.VisualStudio" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NuGet.VisualStudio --version 17.13.2
                    
#r "nuget: NuGet.VisualStudio, 17.13.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=NuGet.VisualStudio&version=17.13.2
                    
Install NuGet.VisualStudio as a Cake Addin
#tool nuget:?package=NuGet.VisualStudio&version=17.13.2
                    
Install NuGet.VisualStudio as a Cake Tool

NuGet.VisualStudio

This package provides APIs for invoking NuGet services in Visual Studio. It contains NuGet’s older services that are available via the Managed Extensibility Framework (MEF).

Usage

After installing the package, you can use its services to interact with NuGet in Visual Studio. This can be used to install and uninstall packages, and to obtain information about installed packages.

MEF Services

From NuGet 6.0, all of these APIs are available in the package NuGet.VisualStudio. In NuGet 5.11 and earlier, the APIs in the namespace NuGet.VisualStudio are available in the package NuGet.VisualStudio, and APIs in the namespace NuGet.SolutionRestoreManager are available in the package NuGet.SolutionRestoreManager.Interop.

Example

Get installed packages

To use a service, import it through the MEF Import attribute, or through the IComponentModel service.

// Using the Import attribute
[Import(typeof(IVsPackageInstaller2))]
public IVsPackageInstaller2 packageInstaller;
packageInstaller.InstallLatestPackage(source: null, currentProject,
    "Newtonsoft.Json", includePrerelease: false, ignoreDependencies: false);

// Using the IComponentModel service
var componentModel = (IComponentModel)GetService(typeof(SComponentModel));
IVsPackageUninstaller uninstallerServices =
    componentModel.GetService<IVsPackageUninstaller>();

var uninstallerServices = installerServices.UninstallPackage(currentProject, "Newtonsoft.json", removeDependencies: true);

Additional documentation

More information about the NuGet.VisualStudio library can be found on the NuGet API docs.

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on NuGet.VisualStudio:

Package Downloads
SuntekSolutions.SkyScraper.Core

.NET SQLServer Data Access, Object Relational Mapper and Caching Library

TwitterTracker

Package Description

TwitterTracker.Filter

Package Description

BlazorAnkitSharma

A reusable component for Blazor (with many features)

AmqpServer

This is a simple Amqp wrapper to reduce boilerplate code.

GitHub repositories (23)

Showing the top 20 popular GitHub repositories that depend on NuGet.VisualStudio:

Repository Stars
dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
unoplatform/uno
Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
microsoft/dotnet-apiport
This repo contains .NET Portability Analyzer (VSIX and Console) libraries and tools
dotnet/project-system
The .NET Project System for Visual Studio
mrlacey/Rapid-XAML-Toolkit
A collection of tools to accelerate XAML development within Visual Studio. These include XAML analysis, XAML generations, plus templates and helpers.
madskristensen/BundlerMinifier
Visual Studio extension
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK.
dotnet/razor
Compiler and tooling experience for Razor ASP.NET Core apps in Visual Studio, Visual Studio for Mac, and VS Code.
SonarSource/sonarlint-visualstudio
SonarLint extension for VisualStudio
aspnet/LibraryManager
madskristensen/WebCompiler
Visual Studio extension for compiling LESS and Sass files
microsoft/slow-cheetah
Tooling for XML and JSON file transforms on build from Visual Studio and MSBuild
sayedihashimi/slow-cheetah
XML Transforms for app.config and other XML files
mhutch/MonoDevelop.MSBuildEditor
Improved MSBuild editing support
christianhelle/apiclientcodegen
A collection of Visual Studio custom tool code generators for Swagger / OpenAPI specification files
StyleCop/StyleCop.ReSharper
Official ReSharper extension for StyleCop
madskristensen/ExtensibilityTools
Tools for writing Visual Studio extensions
NuGet/Samples
NuGet team sample repo
ServiceStack/ServiceStackVS
ServiceStackVS - Visual Studio extension for ServiceStack
TrackableEntities/trackable-entities
N-Tier Support for Entity Framework with WCF or ASP.NET Web API
Version Downloads Last updated
17.13.2 1,258 2/28/2025
17.13.1 385 2/12/2025
17.12.1 2,774 11/12/2024
17.12.0 143 11/12/2024
17.11.1 2,895 10/1/2024
17.11.0 827 8/13/2024
17.11.0-preview.2 118 6/5/2024
17.10.2 419 8/12/2024
17.10.1 3,355 6/27/2024
17.10.0 1,454 5/21/2024
17.9.1 3,192 2/13/2024
17.8.1 322 2/13/2024
17.8.0 3,451 11/17/2023
17.7.1 715 2/14/2024
17.7.0 58,219 8/9/2023
17.6.2 884 2/13/2024
17.6.1 3,299 6/13/2023
17.6.0 1,458 5/17/2023
17.6.0-preview.3 143 5/17/2023
17.5.1 498 6/13/2023
17.5.0 3,285 2/22/2023
17.4.3 165 2/13/2024
17.4.2 267 6/13/2023
17.4.0 11,201 11/9/2022
17.3.4 164 2/13/2024
17.3.3 203 6/14/2023
17.3.1 1,539 10/11/2022
17.2.4 202 6/14/2023
17.2.2 6,386 10/11/2022
17.1.0 66,008 2/16/2022
6.0.6 215 2/13/2024
6.0.5 288 6/13/2023
6.0.3-rc.1 163 10/11/2022
6.0.2 1,019 6/14/2022
5.11.6 1,399 2/13/2024
5.11.5 1,381 6/15/2023
5.11.3 5,675 10/11/2022
5.10.0 6,184 6/15/2021 5.10.0 is deprecated because it is no longer maintained.
5.9.3 506 10/11/2022 5.9.3 is deprecated because it is no longer maintained.
5.8.1 1,108 1/16/2021 5.8.1 is deprecated because it is no longer maintained.
5.7.3-rtm.5 190 10/11/2022 5.7.3-rtm.5 is deprecated because it is no longer maintained.
5.7.2 535 6/14/2022 5.7.2 is deprecated because it is no longer maintained.
5.6.0 8,559 5/20/2020 5.6.0 is deprecated because it is no longer maintained.
5.5.1 2,267 4/3/2020 5.5.1 is deprecated because it is no longer maintained.
5.4.0 7,914 12/3/2019 5.4.0 is deprecated because it is no longer maintained.
5.3.1 1,593 10/25/2019 5.3.1 is deprecated because it is no longer maintained.
5.2.1 193 6/14/2022 5.2.1 is deprecated because it is no longer maintained.
5.1.0 11,523 5/21/2019 5.1.0 is deprecated because it is no longer maintained.
5.0.2 785 5/14/2019 5.0.2 is deprecated because it is no longer maintained.
4.9.6 224 10/11/2022 4.9.6 is deprecated because it is no longer maintained.
4.8.2 466 3/12/2019 4.8.2 is deprecated because it is no longer maintained.
4.7.3 414 3/15/2019 4.7.3 is deprecated because it is no longer maintained.
4.6.4 5,935 3/15/2019 4.6.4 is deprecated because it is no longer maintained.
4.5.3 1,204 3/15/2019 4.5.3 is deprecated because it is no longer maintained.
4.4.3 1,091 3/15/2019 4.4.3 is deprecated because it is no longer maintained.
4.3.1 945 3/12/2019 4.3.1 is deprecated because it is no longer maintained.
4.2.0 6,815 7/14/2017 4.2.0 is deprecated because it is no longer maintained.
4.1.0 1,921 7/14/2017 4.1.0 is deprecated because it is no longer maintained.
4.0.0 96,641 3/7/2017 4.0.0 is deprecated because it is no longer maintained.
3.5.0 39,725 1/18/2017 3.5.0 is deprecated because it is no longer maintained.
3.3.0 152,123 1/14/2016 3.3.0 is deprecated because it is no longer maintained.
2.8.6 24,723 7/21/2015 2.8.6 is deprecated because it is no longer maintained.
2.7.2 3,156 11/11/2013 2.7.2 is deprecated because it is no longer maintained.
2.6.0 2,096 6/26/2013 2.6.0 is deprecated because it is no longer maintained.
2.5.0 2,107 4/25/2013 2.5.0 is deprecated because it is no longer maintained.
2.2.0 2,572 12/12/2012 2.2.0 is deprecated because it is no longer maintained.
2.1.0 6,507 10/4/2012 2.1.0 is deprecated because it is no longer maintained.