Beispiel #1
0
 public XElement ToXml() => new XElement(
     nameof(Usage),
     PackageIdentity.ToXElement().Attributes(),
     AssetsFile.ToXAttributeIfNotNull("File"),
     IsDirectDependency.ToXAttributeIfTrue(nameof(IsDirectDependency)),
     IsAutoReferenced.ToXAttributeIfTrue(nameof(IsAutoReferenced)),
     RuntimePackageRid.ToXAttributeIfNotNull("Rid"));
Beispiel #2
0
 public XElement ToXml() => new XElement(
     nameof(AnnotatedUsage),
     Usage.ToXml().Attributes(),
     Project.ToXAttributeIfNotNull(nameof(Project)),
     SourceBuildPackageIdCreator.ToXAttributeIfNotNull(nameof(SourceBuildPackageIdCreator)),
     ProdConPackageIdCreator.ToXAttributeIfNotNull(nameof(ProdConPackageIdCreator)),
     TestProjectByHeuristic.ToXAttributeIfTrue(nameof(TestProjectByHeuristic)),
     TestProjectOnlyByHeuristic.ToXAttributeIfTrue(nameof(TestProjectOnlyByHeuristic)),
     IsDirectDependency.ToXAttributeIfTrue(nameof(IsDirectDependency)),
     IsAutoReferenced.ToXAttributeIfTrue(nameof(IsAutoReferenced)),
     EndsUpInOutput.ToXAttributeIfTrue(nameof(EndsUpInOutput)));