C# Класс NuGet.VisualStudio.PackageRestoreManager

Наследование: IPackageRestoreManager
Показать файл Открыть проект

Открытые методы

Метод Описание
CheckForMissingPackages ( ) : void
EnableCurrentSolutionForRestore ( bool fromActivation ) : void
RestoreMissingPackages ( ) : System.Threading.Tasks.Task

Приватные методы

Метод Описание
AddNuGetTargets ( Project project, Microsoft.Build.Evaluation.Project buildProject ) : void
AddSolutionDirProperty ( Project project, Microsoft.Build.Evaluation.Project buildProject ) : void
CheckForMissingPackagesCore ( ) : bool
ContainsSource ( IPackageSourceProvider provider, string source ) : bool
DisableSourceControlMode ( ) : void
EnablePackageRestore ( Project project ) : void
EnablePackageRestore ( Project project, IVsPackageManager packageManager ) : void
EnablePackageRestore ( bool fromActivation ) : void
EnsureNuGetBuild ( bool fromActivation ) : void
GetAllPackageReferences ( IVsPackageManager packageManager ) : IEnumerable

Gets all package references in all projects of the current solution plus package references specified in the solution packages.config

GetPackage ( IPackageRepository repository, string packageId, bool fromActivation ) : IPackage

Try to retrieve the package with the specified Id from machine cache first. If not found, download it from the specified repository and add to machine cache.

GetPackageReferences ( IProjectManager projectManager ) : IEnumerable

Gets the package references of the specified project.

OnPackageReferenceAdded ( IVsPackageMetadata metadata ) : void
OnProjectAdded ( object sender, NuGet.VisualStudio.ProjectEventArgs e ) : void
OnSolutionOpenedOrClosed ( object sender, EventArgs e ) : void
PackageRestoreManager ( DTE dte, ISolutionManager solutionManager, IFileSystemProvider fileSystemProvider, IPackageRepositoryFactory packageRepositoryFactory, IPackageSourceProvider packageSourceProvider, IVsPackageManagerFactory packageManagerFactory, IVsPackageInstallerEvents packageInstallerEvents, IPackageRepository localCacheRepository, IVsThreadedWaitDialogFactory waitDialogFactory, ISettings settings ) : System
PackageRestoreManager ( ISolutionManager solutionManager, IFileSystemProvider fileSystemProvider, IPackageRepositoryFactory packageRepositoryFactory, IVsPackageManagerFactory packageManagerFactory, IVsPackageSourceProvider packageSourceProvider, IVsPackageInstallerEvents packageInstallerEvents, ISettings settings ) : System
SetMsBuildProjectProperty ( Project project, Microsoft.Build.Evaluation.Project buildProject, string name, string value ) : void
SetPackageRestoreConsent ( ) : void

Описание методов

CheckForMissingPackages() публичный Метод

public CheckForMissingPackages ( ) : void
Результат void

EnableCurrentSolutionForRestore() публичный Метод

public EnableCurrentSolutionForRestore ( bool fromActivation ) : void
fromActivation bool
Результат void

RestoreMissingPackages() публичный Метод

public RestoreMissingPackages ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task