C# 클래스 NuGet.VisualStudio.PackageRestoreManager

상속: IPackageRestoreManager
파일 보기 프로젝트 열기: themotleyfool/NuGet

공개 메소드들

메소드 설명
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