Esempio n. 1
0
 public static Usage Parse(XElement xml) => new Usage
 {
     PackageIdentity    = XmlParsingHelpers.ParsePackageIdentity(xml),
     AssetsFile         = xml.Attribute("File")?.Value,
     IsDirectDependency = Convert.ToBoolean(xml.Attribute(nameof(IsDirectDependency))?.Value),
     IsAutoReferenced   = Convert.ToBoolean(xml.Attribute(nameof(IsAutoReferenced))?.Value),
     RuntimePackageRid  = xml.Attribute("Rid")?.Value
 };
Esempio n. 2
0
 public static Usage Parse(XElement xml) => new Usage
 {
     PackageIdentity   = XmlParsingHelpers.ParsePackageIdentity(xml),
     AssetsFile        = xml.Attribute("File")?.Value,
     RuntimePackageRid = xml.Attribute("Rid")?.Value
 };