Property | Type | Description | |
---|---|---|---|
AddEntry | void | ||
DeleteEntry | bool | ||
FindEntry | System.Xml.Linq.XElement | ||
GetDocument | System.Xml.Linq.XDocument | ||
GetPackageReferences | IEnumerable |
||
SaveDocument | void |
Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
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 |
public AddEntry ( string id, SemanticVersion version ) : void | ||
id | string | |
version | SemanticVersion | |
return | void |
public AddEntry ( string id, SemanticVersion version, FrameworkName targetFramework ) : void | ||
id | string | |
version | SemanticVersion | |
targetFramework | FrameworkName | |
return | void |
public DeleteEntry ( string id, SemanticVersion version ) : bool | ||
id | string | |
version | SemanticVersion | |
return | bool |
public EntryExists ( string packageId, SemanticVersion version ) : bool | ||
packageId | string | |
version | SemanticVersion | |
return | bool |
public FindEntryWithLatestVersionById ( string id ) : PackageName | ||
id | string | |
return | PackageName |
public PackageReferenceFile ( IFileSystem fileSystem, string path ) : System | ||
fileSystem | IFileSystem | |
path | string | |
return | System |
public PackageReferenceFile ( string path ) : System | ||
path | string | |
return | System |