C# Class NuGet.SharedPackageRepository

Inheritance: LocalPackageRepository, ISharedPackageRepository
显示文件 Open project: xero-github/Nuget Class Usage Examples

Public Methods

Method Description
AddPackageReferenceEntry ( string packageId, SemanticVersion version ) : void
Exists ( string packageId, SemanticVersion version ) : bool
IsReferenced ( string packageId, SemanticVersion version ) : bool
RegisterRepository ( string path ) : void
RemovePackage ( IPackage package ) : void
SharedPackageRepository ( IPackagePathResolver resolver, IFileSystem fileSystem, IFileSystem configSettingsFileSystem ) : System
SharedPackageRepository ( string path ) : System
UnregisterRepository ( string path ) : void

Protected Methods

Method Description
CreateRepository ( string path ) : IPackageRepository

Private Methods

Method Description
AddEntry ( string path ) : void
DeleteEntry ( string path ) : void
FindEntry ( System.Xml.Linq.XDocument document, string path ) : System.Xml.Linq.XElement
GetRepositories ( ) : IEnumerable
GetRepositoryElements ( System.Xml.Linq.XDocument document ) : IEnumerable
GetRepositoryPaths ( ) : IEnumerable
GetStoreDocument ( bool createIfNotExists = false ) : System.Xml.Linq.XDocument
NormalizePath ( string path ) : string
SaveDocument ( System.Xml.Linq.XDocument document ) : void

Method Details

AddPackageReferenceEntry() public method

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

CreateRepository() protected method

protected CreateRepository ( string path ) : IPackageRepository
path string
return IPackageRepository

Exists() public method

public Exists ( string packageId, SemanticVersion version ) : bool
packageId string
version SemanticVersion
return bool

IsReferenced() public method

public IsReferenced ( string packageId, SemanticVersion version ) : bool
packageId string
version SemanticVersion
return bool

RegisterRepository() public method

public RegisterRepository ( string path ) : void
path string
return void

RemovePackage() public method

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

SharedPackageRepository() public method

public SharedPackageRepository ( IPackagePathResolver resolver, IFileSystem fileSystem, IFileSystem configSettingsFileSystem ) : System
resolver IPackagePathResolver
fileSystem IFileSystem
configSettingsFileSystem IFileSystem
return System

SharedPackageRepository() public method

public SharedPackageRepository ( string path ) : System
path string
return System

UnregisterRepository() public method

public UnregisterRepository ( string path ) : void
path string
return void