C# 클래스 NuGet.ProjectManager

상속: IProjectManager
파일 보기 프로젝트 열기: OneGet/nuget

공개 메소드들

메소드 설명
AddPackageReference ( IPackage package, bool ignoreDependencies, bool allowPrereleaseVersions ) : void
AddPackageReference ( string packageId ) : void

Seems to be used by unit tests only. Perhaps, consumers of NuGet.Core may be using this overload

AddPackageReference ( string packageId, NuGet.SemanticVersion version ) : void
AddPackageReference ( string packageId, NuGet.SemanticVersion version, bool ignoreDependencies, bool allowPrereleaseVersions ) : void
IsInstalled ( IPackage package ) : bool
ProjectManager ( IPackageRepository sourceRepository, IPackagePathResolver pathResolver, IProjectSystem project, IPackageRepository localRepository ) : System
RemovePackageReference ( IPackage package, bool forceRemove, bool removeDependencies ) : void
RemovePackageReference ( string packageId ) : void
RemovePackageReference ( string packageId, bool forceRemove ) : void
RemovePackageReference ( string packageId, bool forceRemove, bool removeDependencies ) : void
UpdatePackageReference ( IPackage remotePackage, bool updateDependencies, bool allowPrereleaseVersions ) : void
UpdatePackageReference ( string packageId, IVersionSpec versionSpec, bool updateDependencies, bool allowPrereleaseVersions ) : void
UpdatePackageReference ( string packageId, SemanticVersion version, bool updateDependencies, bool allowPrereleaseVersions ) : void

If the remote package is already determined, consider using the overload which directly takes in the remote package Can avoid calls FindPackage calls to source repository. However, it should also be remembered that SourceRepository of ProjectManager is an aggregate of "SharedPackageRepository" and the selected repository. So, if the package is present on the repository path (by default, the packages folder) It would not result in a call to the server

보호된 메소드들

메소드 설명
AddPackageReferenceToProject ( IPackage package ) : void
Execute ( NuGet.PackageOperation operation ) : void
UpdatePackageReference ( IPackage package ) : void

비공개 메소드들

메소드 설명
CreateOperation ( IPackage package ) : NuGet.PackageOperationEventArgs
Execute ( IPackage package, IPackageOperationResolver resolver ) : void
ExtractPackageFilesToProject ( IPackage package ) : void
FilterAssemblyReferences ( List assemblyReferences, ICollection packageAssemblyReferences ) : void
GetCompatibleInstalledItemsForPackage ( string packageId, IEnumerable items ) : IEnumerable

This method uses the 'targetFramework' attribute in the packages.config to determine compatible items. Hence, it's only good for uninstall operations.

GetConfigMappings ( ) : IDictionary>
GetFilteredAssembliesToDelete ( IPackage package ) : IList
GetPackageTargetFramework ( string packageId ) : FrameworkName
IsTransformFile ( string path ) : bool
LogTargetFrameworkInfo ( IPackage package, List assemblyReferences, List contentFiles, List buildFiles ) : void
OnPackageReferenceAdded ( NuGet.PackageOperationEventArgs e ) : void
OnPackageReferenceAdding ( NuGet.PackageOperationEventArgs e ) : void
OnPackageReferenceRemoved ( NuGet.PackageOperationEventArgs e ) : void
OnPackageReferenceRemoving ( NuGet.PackageOperationEventArgs e ) : void
RemovePackageReferenceFromProject ( IPackage package ) : void
UpdatePackageReference ( string packageId ) : void

Seems to be used by unit tests only. Perhaps, consumers of NuGet.Core may be using this overload

UpdatePackageReference ( string packageId, Func resolvePackage, bool updateDependencies, bool allowPrereleaseVersions, bool targetVersionSetExplicitly ) : void
UpdatePackageReference ( string packageId, SemanticVersion version ) : void

Seems to be used by unit tests only. Perhaps, consumers of NuGet.Core may be using this overload

UpdatePackageReferenceCore ( IPackage package, bool updateDependencies, bool allowPrereleaseVersions ) : void

메소드 상세

AddPackageReference() 공개 메소드

public AddPackageReference ( IPackage package, bool ignoreDependencies, bool allowPrereleaseVersions ) : void
package IPackage
ignoreDependencies bool
allowPrereleaseVersions bool
리턴 void

AddPackageReference() 공개 메소드

Seems to be used by unit tests only. Perhaps, consumers of NuGet.Core may be using this overload
public AddPackageReference ( string packageId ) : void
packageId string
리턴 void

AddPackageReference() 공개 메소드

public AddPackageReference ( string packageId, NuGet.SemanticVersion version ) : void
packageId string
version NuGet.SemanticVersion
리턴 void

AddPackageReference() 공개 메소드

public AddPackageReference ( string packageId, NuGet.SemanticVersion version, bool ignoreDependencies, bool allowPrereleaseVersions ) : void
packageId string
version NuGet.SemanticVersion
ignoreDependencies bool
allowPrereleaseVersions bool
리턴 void

AddPackageReferenceToProject() 보호된 메소드

protected AddPackageReferenceToProject ( IPackage package ) : void
package IPackage
리턴 void

Execute() 보호된 메소드

protected Execute ( NuGet.PackageOperation operation ) : void
operation NuGet.PackageOperation
리턴 void

IsInstalled() 공개 메소드

public IsInstalled ( IPackage package ) : bool
package IPackage
리턴 bool

ProjectManager() 공개 메소드

public ProjectManager ( IPackageRepository sourceRepository, IPackagePathResolver pathResolver, IProjectSystem project, IPackageRepository localRepository ) : System
sourceRepository IPackageRepository
pathResolver IPackagePathResolver
project IProjectSystem
localRepository IPackageRepository
리턴 System

RemovePackageReference() 공개 메소드

public RemovePackageReference ( IPackage package, bool forceRemove, bool removeDependencies ) : void
package IPackage
forceRemove bool
removeDependencies bool
리턴 void

RemovePackageReference() 공개 메소드

public RemovePackageReference ( string packageId ) : void
packageId string
리턴 void

RemovePackageReference() 공개 메소드

public RemovePackageReference ( string packageId, bool forceRemove ) : void
packageId string
forceRemove bool
리턴 void

RemovePackageReference() 공개 메소드

public RemovePackageReference ( string packageId, bool forceRemove, bool removeDependencies ) : void
packageId string
forceRemove bool
removeDependencies bool
리턴 void

UpdatePackageReference() 보호된 메소드

protected UpdatePackageReference ( IPackage package ) : void
package IPackage
리턴 void

UpdatePackageReference() 공개 메소드

public UpdatePackageReference ( IPackage remotePackage, bool updateDependencies, bool allowPrereleaseVersions ) : void
remotePackage IPackage
updateDependencies bool
allowPrereleaseVersions bool
리턴 void

UpdatePackageReference() 공개 메소드

public UpdatePackageReference ( string packageId, IVersionSpec versionSpec, bool updateDependencies, bool allowPrereleaseVersions ) : void
packageId string
versionSpec IVersionSpec
updateDependencies bool
allowPrereleaseVersions bool
리턴 void

UpdatePackageReference() 공개 메소드

If the remote package is already determined, consider using the overload which directly takes in the remote package Can avoid calls FindPackage calls to source repository. However, it should also be remembered that SourceRepository of ProjectManager is an aggregate of "SharedPackageRepository" and the selected repository. So, if the package is present on the repository path (by default, the packages folder) It would not result in a call to the server
public UpdatePackageReference ( string packageId, SemanticVersion version, bool updateDependencies, bool allowPrereleaseVersions ) : void
packageId string
version SemanticVersion
updateDependencies bool
allowPrereleaseVersions bool
리턴 void