C# Class NuGet.PackageManager

Inheritance: IPackageManager
Afficher le fichier Open project: themotleyfool/NuGet Class Usage Examples

Méthodes publiques

Méthode Description
InstallPackage ( IPackage package, bool ignoreDependencies, bool allowPrereleaseVersions ) : void
InstallPackage ( string packageId ) : void
InstallPackage ( string packageId, SemanticVersion version ) : void
InstallPackage ( string packageId, SemanticVersion version, bool ignoreDependencies, bool allowPrereleaseVersions ) : void
PackageManager ( IPackageRepository sourceRepository, IPackagePathResolver pathResolver, IFileSystem fileSystem ) : System
PackageManager ( IPackageRepository sourceRepository, IPackagePathResolver pathResolver, IFileSystem fileSystem, IPackageRepository localRepository ) : System
PackageManager ( IPackageRepository sourceRepository, string path ) : System
UninstallPackage ( IPackage package ) : void
UninstallPackage ( IPackage package, bool forceRemove ) : void
UninstallPackage ( IPackage package, bool forceRemove, bool removeDependencies ) : void
UninstallPackage ( string packageId ) : void
UninstallPackage ( string packageId, SemanticVersion version ) : void
UninstallPackage ( string packageId, SemanticVersion version, bool forceRemove ) : void
UninstallPackage ( string packageId, SemanticVersion version, bool forceRemove, bool removeDependencies ) : void
UpdatePackage ( IPackage newPackage, bool updateDependencies, bool allowPrereleaseVersions ) : void
UpdatePackage ( string packageId, IVersionSpec versionSpec, bool updateDependencies, bool allowPrereleaseVersions ) : void
UpdatePackage ( string packageId, SemanticVersion version, bool updateDependencies, bool allowPrereleaseVersions ) : void
UpdatePackage ( string packageId, bool updateDependencies, bool allowPrereleaseVersions ) : void

Méthodes protégées

Méthode Description
Execute ( NuGet.PackageOperation operation ) : void
ExecuteInstall ( IPackage package ) : void
ExecuteUninstall ( IPackage package ) : void
InstallPackage ( IPackage package, FrameworkName targetFramework, bool ignoreDependencies, bool allowPrereleaseVersions ) : void
OnInstalled ( NuGet.PackageOperationEventArgs e ) : void
OnUninstalled ( NuGet.PackageOperationEventArgs e ) : void

Private Methods

Méthode Description
CreateOperation ( IPackage package ) : NuGet.PackageOperationEventArgs
Execute ( IPackage package, IPackageOperationResolver resolver ) : void
ExpandFiles ( IPackage package ) : void
OnInstalling ( NuGet.PackageOperationEventArgs e ) : void
OnUninstalling ( NuGet.PackageOperationEventArgs e ) : void
RemoveFiles ( IPackage package ) : void
UpdatePackage ( string packageId, Func resolvePackage, bool updateDependencies, bool allowPrereleaseVersions ) : void

Method Details

Execute() protected méthode

protected Execute ( NuGet.PackageOperation operation ) : void
operation NuGet.PackageOperation
Résultat void

ExecuteInstall() protected méthode

protected ExecuteInstall ( IPackage package ) : void
package IPackage
Résultat void

ExecuteUninstall() protected méthode

protected ExecuteUninstall ( IPackage package ) : void
package IPackage
Résultat void

InstallPackage() protected méthode

protected InstallPackage ( IPackage package, FrameworkName targetFramework, bool ignoreDependencies, bool allowPrereleaseVersions ) : void
package IPackage
targetFramework FrameworkName
ignoreDependencies bool
allowPrereleaseVersions bool
Résultat void

InstallPackage() public méthode

public InstallPackage ( IPackage package, bool ignoreDependencies, bool allowPrereleaseVersions ) : void
package IPackage
ignoreDependencies bool
allowPrereleaseVersions bool
Résultat void

InstallPackage() public méthode

public InstallPackage ( string packageId ) : void
packageId string
Résultat void

InstallPackage() public méthode

public InstallPackage ( string packageId, SemanticVersion version ) : void
packageId string
version SemanticVersion
Résultat void

InstallPackage() public méthode

public InstallPackage ( string packageId, SemanticVersion version, bool ignoreDependencies, bool allowPrereleaseVersions ) : void
packageId string
version SemanticVersion
ignoreDependencies bool
allowPrereleaseVersions bool
Résultat void

OnInstalled() protected méthode

protected OnInstalled ( NuGet.PackageOperationEventArgs e ) : void
e NuGet.PackageOperationEventArgs
Résultat void

OnUninstalled() protected méthode

protected OnUninstalled ( NuGet.PackageOperationEventArgs e ) : void
e NuGet.PackageOperationEventArgs
Résultat void

PackageManager() public méthode

public PackageManager ( IPackageRepository sourceRepository, IPackagePathResolver pathResolver, IFileSystem fileSystem ) : System
sourceRepository IPackageRepository
pathResolver IPackagePathResolver
fileSystem IFileSystem
Résultat System

PackageManager() public méthode

public PackageManager ( IPackageRepository sourceRepository, IPackagePathResolver pathResolver, IFileSystem fileSystem, IPackageRepository localRepository ) : System
sourceRepository IPackageRepository
pathResolver IPackagePathResolver
fileSystem IFileSystem
localRepository IPackageRepository
Résultat System

PackageManager() public méthode

public PackageManager ( IPackageRepository sourceRepository, string path ) : System
sourceRepository IPackageRepository
path string
Résultat System

UninstallPackage() public méthode

public UninstallPackage ( IPackage package ) : void
package IPackage
Résultat void

UninstallPackage() public méthode

public UninstallPackage ( IPackage package, bool forceRemove ) : void
package IPackage
forceRemove bool
Résultat void

UninstallPackage() public méthode

public UninstallPackage ( IPackage package, bool forceRemove, bool removeDependencies ) : void
package IPackage
forceRemove bool
removeDependencies bool
Résultat void

UninstallPackage() public méthode

public UninstallPackage ( string packageId ) : void
packageId string
Résultat void

UninstallPackage() public méthode

public UninstallPackage ( string packageId, SemanticVersion version ) : void
packageId string
version SemanticVersion
Résultat void

UninstallPackage() public méthode

public UninstallPackage ( string packageId, SemanticVersion version, bool forceRemove ) : void
packageId string
version SemanticVersion
forceRemove bool
Résultat void

UninstallPackage() public méthode

public UninstallPackage ( string packageId, SemanticVersion version, bool forceRemove, bool removeDependencies ) : void
packageId string
version SemanticVersion
forceRemove bool
removeDependencies bool
Résultat void

UpdatePackage() public méthode

public UpdatePackage ( IPackage newPackage, bool updateDependencies, bool allowPrereleaseVersions ) : void
newPackage IPackage
updateDependencies bool
allowPrereleaseVersions bool
Résultat void

UpdatePackage() public méthode

public UpdatePackage ( string packageId, IVersionSpec versionSpec, bool updateDependencies, bool allowPrereleaseVersions ) : void
packageId string
versionSpec IVersionSpec
updateDependencies bool
allowPrereleaseVersions bool
Résultat void

UpdatePackage() public méthode

public UpdatePackage ( string packageId, SemanticVersion version, bool updateDependencies, bool allowPrereleaseVersions ) : void
packageId string
version SemanticVersion
updateDependencies bool
allowPrereleaseVersions bool
Résultat void

UpdatePackage() public méthode

public UpdatePackage ( string packageId, bool updateDependencies, bool allowPrereleaseVersions ) : void
packageId string
updateDependencies bool
allowPrereleaseVersions bool
Résultat void