C# Class NuGet.Dialog.Providers.InstalledProvider

IVsExtensionsProvider implementation responsible for gathering a list of installed packages which will be shown in the Add Package dialog.
Inheritance: PackagesProviderBase
Datei anzeigen Open project: xero-github/Nuget Class Usage Examples

Private Properties

Property Type Description
OnMissPackagesChanged void

Public Methods

Method Description
CanExecute ( PackageItem item ) : bool
CreateExtension ( IPackage package ) : IVsExtension
Dispose ( ) : void
InstalledProvider ( IVsPackageManager packageManager, Project project, IPackageRepository localRepository, System.Windows.ResourceDictionary resources, ProviderServices providerServices, IProgressProvider progressProvider, ISolutionManager solutionManager, IPackageRestoreManager packageRestoreManager ) : System

Protected Methods

Method Description
AskRemoveDependencyAndCheckUninstallPSScript ( IPackage package, bool checkDependents ) : bool?
CreateSortDescriptors ( ) : IList
ExecuteCore ( PackageItem item ) : bool
FillRootNodes ( ) : void
GetProgressMessage ( IPackage package ) : string
InstallPackageToProject ( Project project, PackageItem item, bool includePrerelease ) : void
OnExecuteCompleted ( PackageItem item ) : void
UninstallPackageFromProject ( Project project, PackageItem item, bool removeDependencies ) : void

Private Methods

Method Description
OnMissPackagesChanged ( object sender, NuGet.VisualStudio.PackagesMissingStatusEventArgs e ) : void

Method Details

AskRemoveDependencyAndCheckUninstallPSScript() protected method

protected AskRemoveDependencyAndCheckUninstallPSScript ( IPackage package, bool checkDependents ) : bool?
package IPackage
checkDependents bool
return bool?

CanExecute() public method

public CanExecute ( PackageItem item ) : bool
item PackageItem
return bool

CreateExtension() public method

public CreateExtension ( IPackage package ) : IVsExtension
package IPackage
return IVsExtension

CreateSortDescriptors() protected method

protected CreateSortDescriptors ( ) : IList
return IList

Dispose() public method

public Dispose ( ) : void
return void

ExecuteCore() protected method

protected ExecuteCore ( PackageItem item ) : bool
item PackageItem
return bool

FillRootNodes() protected method

protected FillRootNodes ( ) : void
return void

GetProgressMessage() protected method

protected GetProgressMessage ( IPackage package ) : string
package IPackage
return string

InstallPackageToProject() protected method

protected InstallPackageToProject ( Project project, PackageItem item, bool includePrerelease ) : void
project Project
item PackageItem
includePrerelease bool
return void

InstalledProvider() public method

public InstalledProvider ( IVsPackageManager packageManager, Project project, IPackageRepository localRepository, System.Windows.ResourceDictionary resources, ProviderServices providerServices, IProgressProvider progressProvider, ISolutionManager solutionManager, IPackageRestoreManager packageRestoreManager ) : System
packageManager IVsPackageManager
project Project
localRepository IPackageRepository
resources System.Windows.ResourceDictionary
providerServices ProviderServices
progressProvider IProgressProvider
solutionManager ISolutionManager
packageRestoreManager IPackageRestoreManager
return System

OnExecuteCompleted() protected method

protected OnExecuteCompleted ( PackageItem item ) : void
item PackageItem
return void

UninstallPackageFromProject() protected method

protected UninstallPackageFromProject ( Project project, PackageItem item, bool removeDependencies ) : void
project Project
item PackageItem
removeDependencies bool
return void