Свойство | Тип | Описание | |
---|---|---|---|
AddBindingRedirects | void | ||
AddPackageReference | void | ||
AddPackageReference | void | ||
AddPackageToRecentRepository | void | ||
AddSolutionPackageConfigEntry | void | ||
ClearLogger | void | ||
CreateAmbiguousUninstallException | |||
CreateAmbiguousUpdateException | |||
CreateProjectManager | IProjectManager | ||
CreateProjectManagerSourceRepository | IPackageRepository | ||
EnsureCached | void | ||
ExecuteOperationsWithPackage | void | ||
ExecuteOperationsWithPackage | void | ||
FindLocalPackage | IPackage | ||
FindLocalPackage | IPackage | ||
FindLocalPackageForUpdate | IPackage | ||
GetProject | Project | ||
GetUpgradeVersionSpec | IVersionSpec | ||
GetUpgradeVersionSpec | IVersionSpec | ||
InitializeLogger | void | ||
RemovePackageReference | void | ||
RollbackProjectActions | void | ||
RunProjectAction | void | ||
RunSolutionAction | void | ||
Uninstall | void | ||
UpdatePackage | void | ||
UpdatePackage | void | ||
UpdatePackageReference | void | ||
UpdatePackageReference | void | ||
UpdatePackages | void | ||
UpdatePackages | void | ||
UpdatePackages | void |
Метод | Описание | |
---|---|---|
GetProjectManager ( Project project ) : IProjectManager | ||
InstallPackage ( IEnumerable |
||
InstallPackage ( IProjectManager projectManager, IPackage package, IEnumerable |
||
InstallPackage ( IProjectManager projectManager, string packageId, SemanticVersion version, bool ignoreDependencies, bool allowPrereleaseVersions, ILogger logger ) : void | ||
InstallPackage ( IProjectManager projectManager, string packageId, SemanticVersion version, bool ignoreDependencies, bool allowPrereleaseVersions, bool skipAssemblyReferences, ILogger logger ) : void | ||
IsProjectLevel ( IPackage package ) : bool |
Check to see if this package applies to a project based on 2 criteria: 1. The package has project content (i.e. content that can be applied to a project lib or content files) 2. The package is referenced by any other project This logic will probably fail in one edge case. If there is a meta package that applies to a project that ended up not being installed in any of the projects and it only exists at solution level. If this happens, then we think that the following operation applies to the solution instead of showing an error. To solve that edge case we'd have to walk the graph to find out what the package applies to.
|
|
UninstallPackage ( IProjectManager projectManager, string packageId, SemanticVersion version, bool forceRemove, bool removeDependencies ) : void | ||
UninstallPackage ( IProjectManager projectManager, string packageId, SemanticVersion version, bool forceRemove, bool removeDependencies, ILogger logger ) : void | ||
UpdatePackage ( IEnumerable |
||
UpdatePackage ( IProjectManager projectManager, IPackage package, IEnumerable |
||
UpdatePackage ( IProjectManager projectManager, string packageId, PackageUpdateMode updateMode, bool updateDependencies, bool allowPrereleaseVersions, ILogger logger ) : void | ||
UpdatePackage ( string packageId, IVersionSpec versionSpec, bool updateDependencies, bool allowPrereleaseVersions, ILogger logger, IPackageOperationEventListener eventListener ) : void | ||
UpdatePackage ( string packageId, PackageUpdateMode updateMode, bool updateDependencies, bool allowPrereleaseVersions, ILogger logger, IPackageOperationEventListener eventListener ) : void | ||
UpdatePackageToSpecificVersion ( IProjectManager projectManager, string packageId, SemanticVersion version, bool updateDependencies, bool allowPrereleaseVersions, ILogger logger ) : void | ||
UpdatePackageToSpecificVersion ( string packageId, SemanticVersion version, bool updateDependencies, bool allowPrereleaseVersions, ILogger logger, IPackageOperationEventListener eventListener ) : void | ||
UpdatePackages ( IProjectManager projectManager, PackageUpdateMode updateMode, bool updateDependencies, bool allowPrereleaseVersions, ILogger logger ) : void | ||
UpdatePackages ( PackageUpdateMode updateMode, bool updateDependencies, bool allowPrereleaseVersions, ILogger logger, IPackageOperationEventListener eventListener ) : void | ||
VsPackageManager ( ISolutionManager solutionManager, IPackageRepository sourceRepository, IFileSystemProvider fileSystemProvider, IFileSystem fileSystem, ISharedPackageRepository sharedRepository, IRecentPackageRepository recentPackagesRepository, |
Метод | Описание | |
---|---|---|
ExecuteUninstall ( IPackage package ) : void | ||
OnInstalled ( NuGet.VisualStudio.PackageOperationEventArgs e ) : void |
Метод | Описание | |
---|---|---|
AddBindingRedirects ( IProjectManager projectManager ) : void | ||
AddPackageReference ( IProjectManager projectManager, IPackage package, bool ignoreDependencies, bool allowPrereleaseVersions ) : void | ||
AddPackageReference ( IProjectManager projectManager, string packageId, SemanticVersion version, bool ignoreDependencies, bool allowPrereleaseVersions ) : void | ||
AddPackageToRecentRepository ( IPackage package, bool updateOnly = false ) : void | ||
AddSolutionPackageConfigEntry ( IPackage package ) : void | ||
ClearLogger ( IProjectManager projectManager ) : void | ||
CreateAmbiguousUninstallException ( IProjectManager projectManager, IList |
||
CreateAmbiguousUpdateException ( IProjectManager projectManager, IList |
||
CreateProjectManager ( Project project ) : IProjectManager | ||
CreateProjectManagerSourceRepository ( ) : IPackageRepository | ||
EnsureCached ( Project project ) : void | ||
ExecuteOperationsWithPackage ( IEnumerable |
||
ExecuteOperationsWithPackage ( IProjectManager projectManager, IPackage package, IEnumerable |
||
FindLocalPackage ( IProjectManager projectManager, string packageId, SemanticVersion version, Func |
||
FindLocalPackage ( string packageId, bool &appliesToProject ) : IPackage | ||
FindLocalPackageForUpdate ( IProjectManager projectManager, string packageId, bool &appliesToProject ) : IPackage | ||
GetProject ( IProjectManager projectManager ) : Project | ||
GetUpgradeVersionSpec ( IProjectManager projectManager, string packageId, PackageUpdateMode updateMode ) : IVersionSpec | ||
GetUpgradeVersionSpec ( string packageId, PackageUpdateMode updateMode ) : IVersionSpec | ||
InitializeLogger ( ILogger logger, IProjectManager projectManager ) : void | ||
RemovePackageReference ( IProjectManager projectManager, string packageId, bool forceRemove, bool removeDependencies ) : void | ||
RollbackProjectActions ( IProjectManager projectManager, IEnumerable |
||
RunProjectAction ( IProjectManager projectManager, System.Action action ) : void |
Runs action on the project manager and rollsback any package installs if it fails.
|
|
RunSolutionAction ( System.Action action ) : void |
Runs the specified action and rolls back any installed packages if on failure.
|
|
Uninstall ( IEnumerable |
||
UpdatePackage ( IProjectManager projectManager, string packageId, System.Action projectAction, Func |
||
UpdatePackage ( string packageId, Action |
||
UpdatePackageReference ( IProjectManager projectManager, string packageId, IVersionSpec versionSpec, bool updateDependencies, bool allowPrereleaseVersions ) : void | ||
UpdatePackageReference ( IProjectManager projectManager, string packageId, SemanticVersion version, bool updateDependencies, bool allowPrereleaseVersions ) : void | ||
UpdatePackages ( IPackageRepository localRepository, Action |
||
UpdatePackages ( IPackageRepository packageRepository, PackageUpdateMode updateMode, bool updateDependencies, bool allowPrereleaseVersions, ILogger logger, IPackageOperationEventListener eventListener ) : void | ||
UpdatePackages ( IProjectManager projectManager, bool updateDependencies, PackageUpdateMode updateMode, bool allowPrereleaseVersions, ILogger logger ) : void |
protected ExecuteUninstall ( IPackage package ) : void | ||
package | IPackage | |
Результат | void |
public GetProjectManager ( Project project ) : IProjectManager | ||
project | Project | |
Результат | IProjectManager |
public InstallPackage ( IEnumerable |
||
projects | IEnumerable |
|
package | IPackage | |
operations | IEnumerable |
|
ignoreDependencies | bool | |
allowPrereleaseVersions | bool | |
logger | ILogger | |
packageOperationEventListener | IPackageOperationEventListener | |
Результат | void |
public InstallPackage ( IProjectManager projectManager, IPackage package, IEnumerable |
||
projectManager | IProjectManager | |
package | IPackage | |
operations | IEnumerable |
|
ignoreDependencies | bool | |
allowPrereleaseVersions | bool | |
logger | ILogger | |
Результат | void |
public InstallPackage ( IProjectManager projectManager, string packageId, SemanticVersion version, bool ignoreDependencies, bool allowPrereleaseVersions, ILogger logger ) : void | ||
projectManager | IProjectManager | |
packageId | string | |
version | SemanticVersion | |
ignoreDependencies | bool | |
allowPrereleaseVersions | bool | |
logger | ILogger | |
Результат | void |
public InstallPackage ( IProjectManager projectManager, string packageId, SemanticVersion version, bool ignoreDependencies, bool allowPrereleaseVersions, bool skipAssemblyReferences, ILogger logger ) : void | ||
projectManager | IProjectManager | |
packageId | string | |
version | SemanticVersion | |
ignoreDependencies | bool | |
allowPrereleaseVersions | bool | |
skipAssemblyReferences | bool | |
logger | ILogger | |
Результат | void |
public IsProjectLevel ( IPackage package ) : bool | ||
package | IPackage | |
Результат | bool |
protected OnInstalled ( NuGet.VisualStudio.PackageOperationEventArgs e ) : void | ||
e | NuGet.VisualStudio.PackageOperationEventArgs | |
Результат | void |
public UninstallPackage ( IProjectManager projectManager, string packageId, SemanticVersion version, bool forceRemove, bool removeDependencies ) : void | ||
projectManager | IProjectManager | |
packageId | string | |
version | SemanticVersion | |
forceRemove | bool | |
removeDependencies | bool | |
Результат | void |
public UninstallPackage ( IProjectManager projectManager, string packageId, SemanticVersion version, bool forceRemove, bool removeDependencies, ILogger logger ) : void | ||
projectManager | IProjectManager | |
packageId | string | |
version | SemanticVersion | |
forceRemove | bool | |
removeDependencies | bool | |
logger | ILogger | |
Результат | void |
public UpdatePackage ( IEnumerable |
||
projects | IEnumerable |
|
package | IPackage | |
operations | IEnumerable |
|
updateDependencies | bool | |
allowPrereleaseVersions | bool | |
logger | ILogger | |
packageOperationEventListener | IPackageOperationEventListener | |
Результат | void |
public UpdatePackage ( IProjectManager projectManager, IPackage package, IEnumerable |
||
projectManager | IProjectManager | |
package | IPackage | |
operations | IEnumerable |
|
updateDependencies | bool | |
allowPrereleaseVersions | bool | |
logger | ILogger | |
Результат | void |
public UpdatePackage ( IProjectManager projectManager, string packageId, PackageUpdateMode updateMode, bool updateDependencies, bool allowPrereleaseVersions, ILogger logger ) : void | ||
projectManager | IProjectManager | |
packageId | string | |
updateMode | PackageUpdateMode | |
updateDependencies | bool | |
allowPrereleaseVersions | bool | |
logger | ILogger | |
Результат | void |
public UpdatePackage ( string packageId, IVersionSpec versionSpec, bool updateDependencies, bool allowPrereleaseVersions, ILogger logger, IPackageOperationEventListener eventListener ) : void | ||
packageId | string | |
versionSpec | IVersionSpec | |
updateDependencies | bool | |
allowPrereleaseVersions | bool | |
logger | ILogger | |
eventListener | IPackageOperationEventListener | |
Результат | void |
public UpdatePackage ( string packageId, PackageUpdateMode updateMode, bool updateDependencies, bool allowPrereleaseVersions, ILogger logger, IPackageOperationEventListener eventListener ) : void | ||
packageId | string | |
updateMode | PackageUpdateMode | |
updateDependencies | bool | |
allowPrereleaseVersions | bool | |
logger | ILogger | |
eventListener | IPackageOperationEventListener | |
Результат | void |
public UpdatePackageToSpecificVersion ( IProjectManager projectManager, string packageId, SemanticVersion version, bool updateDependencies, bool allowPrereleaseVersions, ILogger logger ) : void | ||
projectManager | IProjectManager | |
packageId | string | |
version | SemanticVersion | |
updateDependencies | bool | |
allowPrereleaseVersions | bool | |
logger | ILogger | |
Результат | void |
public UpdatePackageToSpecificVersion ( string packageId, SemanticVersion version, bool updateDependencies, bool allowPrereleaseVersions, ILogger logger, IPackageOperationEventListener eventListener ) : void | ||
packageId | string | |
version | SemanticVersion | |
updateDependencies | bool | |
allowPrereleaseVersions | bool | |
logger | ILogger | |
eventListener | IPackageOperationEventListener | |
Результат | void |
public UpdatePackages ( IProjectManager projectManager, PackageUpdateMode updateMode, bool updateDependencies, bool allowPrereleaseVersions, ILogger logger ) : void | ||
projectManager | IProjectManager | |
updateMode | PackageUpdateMode | |
updateDependencies | bool | |
allowPrereleaseVersions | bool | |
logger | ILogger | |
Результат | void |
public UpdatePackages ( PackageUpdateMode updateMode, bool updateDependencies, bool allowPrereleaseVersions, ILogger logger, IPackageOperationEventListener eventListener ) : void | ||
updateMode | PackageUpdateMode | |
updateDependencies | bool | |
allowPrereleaseVersions | bool | |
logger | ILogger | |
eventListener | IPackageOperationEventListener | |
Результат | void |
public VsPackageManager ( ISolutionManager solutionManager, IPackageRepository sourceRepository, IFileSystemProvider fileSystemProvider, IFileSystem fileSystem, ISharedPackageRepository sharedRepository, IRecentPackageRepository recentPackagesRepository, |
||
solutionManager | ISolutionManager | |
sourceRepository | IPackageRepository | |
fileSystemProvider | IFileSystemProvider | |
fileSystem | IFileSystem | |
sharedRepository | ISharedPackageRepository | |
recentPackagesRepository | IRecentPackageRepository | |
packageEvents | ||
Результат | System |