You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/visual-studio-extensibility/nuget-api-in-visual-studio.md
+33-74Lines changed: 33 additions & 74 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,13 +49,11 @@ From NuGet 6.0, all of these APIs are available in the package [NuGet.VisualStud
49
49
-[`IVsFrameworkCompatibility3`](#ivsframeworkcompatibility3-interface) Contains methods to discover frameworks and compatibility between frameworks. (5.8+)
50
50
-[`IVsFrameworkParser`](#ivsframeworkparser-interface) An interface for dealing with the conversion between strings and [FrameworkName](/dotnet/api/system.runtime.versioning.frameworkname) (4.0+)
51
51
-[`IVsFrameworkParser2`](#ivsframeworkparser2-interface) An interface to parse .NET Framework strings. See [NuGet-IVsFrameworkParser](https://aka.ms/NuGet-IVsFrameworkParser). (5.8+)
52
-
-[`IVsGlobalPackagesInitScriptExecutor`](#ivsglobalpackagesinitscriptexecutor-interface) Execute powershell scripts from package(s) in a solution (4.0+)
53
52
-[`IVsPackageInstaller`](#ivspackageinstaller-interface): Methods to install NuGet packages into projects. (3.3+)
54
53
-[`IVsPackageInstaller2](#ivspackageinstaller2-interface) Contains method to install latest version of a single package into a project within the current solution.
55
54
-[`IVsPackageInstallerEvents`](#ivspackageinstallerevents-interface): Events for package install/uninstall. (3.3+)
56
55
-[`IVsPackageInstallerProjectEvents`](#ivspackageinstallerprojectevents-interface): Batch events for package install/uninstall. (3.3+)
57
56
-[`IVsPackageInstallerServices`](#ivspackageinstallerservices-interface): Methods to retrieve installed packages in the current solution and to check whether a given package is installed in a project. (3.3+)
58
-
-[`IVsPackageManagerProvider`](#ivspackagemanagerprovider-interface): Methods to provide alternative Package Manager suggestions for a NuGet package. (3.3 - 5.11)
59
57
-[`IVsPackageRestorer`](#ivspackagerestorer-interface): Methods to restore packages installed in a project. (3.3+)
60
58
-[`IVsPackageSourceProvider`](#ivspackagesourceprovider-interface): Methods to retrieve a list of NuGet package sources. (3.3+)
61
59
-[`IVsPackageUninstaller`](#ivspackageuninstaller-interface): Methods to uninstall NuGet packages from projects. (3.3+)
@@ -75,6 +73,7 @@ These interfaces are designed for project systems to interact with NuGet, allowi
@@ -810,53 +784,6 @@ public interface IRegistryKey
810
784
}
811
785
```
812
786
813
-
## IVsPackageManagerProvider interface
814
-
815
-
This interface was primarily used by the ASP.NET team, to suggest that Javascript and CSS packages like `jQuery` and `bootstrap` are installed with Bower instead of NuGet. Since they removed that functionality From Visual Studio, NuGet has obsolete this interface, and it will no longer be used by the Package Manager UI in Visual Studio 2022 (version 17.0) and later.
816
-
817
-
```cs
818
-
/// <summary>
819
-
/// Interface allowing integration of alternate package manager suggestion for a NuGet package.
820
-
/// For example jQuery may appear on Bower and npm,
821
-
/// it might be more appropriate to install a package from them for certain projects.
822
-
/// </summary>
823
-
[Obsolete]
824
-
publicinterfaceIVsPackageManagerProvider
825
-
{
826
-
/// <summary>
827
-
/// Localized display package manager name.
828
-
/// </summary>
829
-
stringPackageManagerName { get; }
830
-
831
-
/// <summary>
832
-
/// Package manager unique id.
833
-
/// </summary>
834
-
stringPackageManagerId { get; }
835
-
836
-
/// <summary>
837
-
/// The tool tip description for the package
838
-
/// </summary>
839
-
stringDescription { get; }
840
-
841
-
/// <summary>
842
-
/// Check if a recommendation should be surfaced for an alternate package manager.
843
-
/// This code should not rely on slow network calls, and should return rapidly.
0 commit comments