C# Class NuGet.VisualStudio.VsPackageManagerFactory

Inheritance: IVsPackageManagerFactory
显示文件 Open project: xero-github/Nuget Class Usage Examples

Public Methods

Method Description
CreatePackageManager ( ) : IVsPackageManager

Creates an VsPackageManagerInstance that uses the Active Repository (the repository selected in the console drop down) and uses a fallback repository for dependencies.

CreatePackageManager ( IPackageRepository repository, bool useFallbackForDependencies ) : IVsPackageManager
CreatePackageManager ( IPackageRepository repository, bool useFallbackForDependencies, bool addToRecent ) : IVsPackageManager

Protected Methods

Method Description
GetConfigSettingsFileSystem ( string configFolderPath ) : IFileSystem

Private Methods

Method Description
CreateFallbackRepository ( IPackageRepository primaryRepository ) : IPackageRepository

Creates a FallbackRepository with an aggregate repository that also contains the primaryRepository.

GetRepositoryInfo ( ) : RepositoryInfo
IsAggregateRepository ( IPackageRepository repository ) : bool
VsPackageManagerFactory ( ISolutionManager solutionManager, IPackageRepositoryFactory repositoryFactory, IVsPackageSourceProvider packageSourceProvider, IFileSystemProvider fileSystemProvider, IRepositorySettings repositorySettings, IRecentPackageRepository recentPackagesRepository, VsPackageInstallerEvents packageEvents ) : System

Method Details

CreatePackageManager() public method

Creates an VsPackageManagerInstance that uses the Active Repository (the repository selected in the console drop down) and uses a fallback repository for dependencies.
public CreatePackageManager ( ) : IVsPackageManager
return IVsPackageManager

CreatePackageManager() public method

public CreatePackageManager ( IPackageRepository repository, bool useFallbackForDependencies ) : IVsPackageManager
repository IPackageRepository
useFallbackForDependencies bool
return IVsPackageManager

CreatePackageManager() public method

public CreatePackageManager ( IPackageRepository repository, bool useFallbackForDependencies, bool addToRecent ) : IVsPackageManager
repository IPackageRepository
useFallbackForDependencies bool
addToRecent bool
return IVsPackageManager

GetConfigSettingsFileSystem() protected method

protected GetConfigSettingsFileSystem ( string configFolderPath ) : IFileSystem
configFolderPath string
return IFileSystem