C# Class NuGet.VisualStudio.PackageRestoreManager

Inheritance: IPackageRestoreManager
Afficher le fichier Open project: themotleyfool/NuGet

Méthodes publiques

Méthode Description
CheckForMissingPackages ( ) : void
EnableCurrentSolutionForRestore ( bool fromActivation ) : void
RestoreMissingPackages ( ) : System.Threading.Tasks.Task

Private Methods

Méthode Description
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

Method Details

CheckForMissingPackages() public méthode

public CheckForMissingPackages ( ) : void
Résultat void

EnableCurrentSolutionForRestore() public méthode

public EnableCurrentSolutionForRestore ( bool fromActivation ) : void
fromActivation bool
Résultat void

RestoreMissingPackages() public méthode

public RestoreMissingPackages ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task