C# 클래스 NuGet.PackageReferenceFile

파일 보기 프로젝트 열기: themotleyfool/NuGet 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddEntry void
DeleteEntry bool
FindEntry System.Xml.Linq.XElement
GetDocument System.Xml.Linq.XDocument
GetPackageReferences IEnumerable
SaveDocument void

공개 메소드들

메소드 설명
AddEntry ( string id, SemanticVersion version ) : void
AddEntry ( string id, SemanticVersion version, FrameworkName targetFramework ) : void
DeleteEntry ( string id, SemanticVersion version ) : bool

Deletes an entry from the file with matching id and version. Returns true if the file was deleted.

EntryExists ( string packageId, SemanticVersion version ) : bool
FindEntryWithLatestVersionById ( string id ) : PackageName
PackageReferenceFile ( IFileSystem fileSystem, string path ) : System
PackageReferenceFile ( string path ) : System

비공개 메소드들

메소드 설명
AddEntry ( System.Xml.Linq.XDocument document, string id, SemanticVersion version, FrameworkName targetFramework ) : void
DeleteEntry ( System.Xml.Linq.XDocument document, string id, SemanticVersion version ) : bool
FindEntry ( System.Xml.Linq.XDocument document, string id, SemanticVersion version ) : System.Xml.Linq.XElement
GetDocument ( bool createIfNotExists = false ) : System.Xml.Linq.XDocument
GetPackageReferences ( ) : IEnumerable
SaveDocument ( System.Xml.Linq.XDocument document ) : void

메소드 상세

AddEntry() 공개 메소드

public AddEntry ( string id, SemanticVersion version ) : void
id string
version SemanticVersion
리턴 void

AddEntry() 공개 메소드

public AddEntry ( string id, SemanticVersion version, FrameworkName targetFramework ) : void
id string
version SemanticVersion
targetFramework FrameworkName
리턴 void

DeleteEntry() 공개 메소드

Deletes an entry from the file with matching id and version. Returns true if the file was deleted.
public DeleteEntry ( string id, SemanticVersion version ) : bool
id string
version SemanticVersion
리턴 bool

EntryExists() 공개 메소드

public EntryExists ( string packageId, SemanticVersion version ) : bool
packageId string
version SemanticVersion
리턴 bool

FindEntryWithLatestVersionById() 공개 메소드

public FindEntryWithLatestVersionById ( string id ) : PackageName
id string
리턴 PackageName

PackageReferenceFile() 공개 메소드

public PackageReferenceFile ( IFileSystem fileSystem, string path ) : System
fileSystem IFileSystem
path string
리턴 System

PackageReferenceFile() 공개 메소드

public PackageReferenceFile ( string path ) : System
path string
리턴 System