C# Class NuGet.PackageManager

Inheritance: IPackageManager
Datei anzeigen Open project: themotleyfool/NuGet Class Usage Examples

Public Methods

Method 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

Protected Methods

Method 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

Method 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 method

protected Execute ( NuGet.PackageOperation operation ) : void
operation NuGet.PackageOperation
return void

ExecuteInstall() protected method

protected ExecuteInstall ( IPackage package ) : void
package IPackage
return void

ExecuteUninstall() protected method

protected ExecuteUninstall ( IPackage package ) : void
package IPackage
return void

InstallPackage() protected method

protected InstallPackage ( IPackage package, FrameworkName targetFramework, bool ignoreDependencies, bool allowPrereleaseVersions ) : void
package IPackage
targetFramework FrameworkName
ignoreDependencies bool
allowPrereleaseVersions bool
return void

InstallPackage() public method

public InstallPackage ( IPackage package, bool ignoreDependencies, bool allowPrereleaseVersions ) : void
package IPackage
ignoreDependencies bool
allowPrereleaseVersions bool
return void

InstallPackage() public method

public InstallPackage ( string packageId ) : void
packageId string
return void

InstallPackage() public method

public InstallPackage ( string packageId, SemanticVersion version ) : void
packageId string
version SemanticVersion
return void

InstallPackage() public method

public InstallPackage ( string packageId, SemanticVersion version, bool ignoreDependencies, bool allowPrereleaseVersions ) : void
packageId string
version SemanticVersion
ignoreDependencies bool
allowPrereleaseVersions bool
return void

OnInstalled() protected method

protected OnInstalled ( NuGet.PackageOperationEventArgs e ) : void
e NuGet.PackageOperationEventArgs
return void

OnUninstalled() protected method

protected OnUninstalled ( NuGet.PackageOperationEventArgs e ) : void
e NuGet.PackageOperationEventArgs
return void

PackageManager() public method

public PackageManager ( IPackageRepository sourceRepository, IPackagePathResolver pathResolver, IFileSystem fileSystem ) : System
sourceRepository IPackageRepository
pathResolver IPackagePathResolver
fileSystem IFileSystem
return System

PackageManager() public method

public PackageManager ( IPackageRepository sourceRepository, IPackagePathResolver pathResolver, IFileSystem fileSystem, IPackageRepository localRepository ) : System
sourceRepository IPackageRepository
pathResolver IPackagePathResolver
fileSystem IFileSystem
localRepository IPackageRepository
return System

PackageManager() public method

public PackageManager ( IPackageRepository sourceRepository, string path ) : System
sourceRepository IPackageRepository
path string
return System

UninstallPackage() public method

public UninstallPackage ( IPackage package ) : void
package IPackage
return void

UninstallPackage() public method

public UninstallPackage ( IPackage package, bool forceRemove ) : void
package IPackage
forceRemove bool
return void

UninstallPackage() public method

public UninstallPackage ( IPackage package, bool forceRemove, bool removeDependencies ) : void
package IPackage
forceRemove bool
removeDependencies bool
return void

UninstallPackage() public method

public UninstallPackage ( string packageId ) : void
packageId string
return void

UninstallPackage() public method

public UninstallPackage ( string packageId, SemanticVersion version ) : void
packageId string
version SemanticVersion
return void

UninstallPackage() public method

public UninstallPackage ( string packageId, SemanticVersion version, bool forceRemove ) : void
packageId string
version SemanticVersion
forceRemove bool
return void

UninstallPackage() public method

public UninstallPackage ( string packageId, SemanticVersion version, bool forceRemove, bool removeDependencies ) : void
packageId string
version SemanticVersion
forceRemove bool
removeDependencies bool
return void

UpdatePackage() public method

public UpdatePackage ( IPackage newPackage, bool updateDependencies, bool allowPrereleaseVersions ) : void
newPackage IPackage
updateDependencies bool
allowPrereleaseVersions bool
return void

UpdatePackage() public method

public UpdatePackage ( string packageId, IVersionSpec versionSpec, bool updateDependencies, bool allowPrereleaseVersions ) : void
packageId string
versionSpec IVersionSpec
updateDependencies bool
allowPrereleaseVersions bool
return void

UpdatePackage() public method

public UpdatePackage ( string packageId, SemanticVersion version, bool updateDependencies, bool allowPrereleaseVersions ) : void
packageId string
version SemanticVersion
updateDependencies bool
allowPrereleaseVersions bool
return void

UpdatePackage() public method

public UpdatePackage ( string packageId, bool updateDependencies, bool allowPrereleaseVersions ) : void
packageId string
updateDependencies bool
allowPrereleaseVersions bool
return void