@@ -720,35 +720,35 @@ public static bool TryConvertFromJson(
720720 // Dependencies
721721 if ( rootDom . TryGetProperty ( "dependencyGroups" , out JsonElement dependencyGroupsElement ) )
722722 {
723- List < Dependency > pkgDeps = new ( ) ;
724- foreach (
725- JsonElement dependencyGroup in dependencyGroupsElement . EnumerateArray ( ) . Where (
726- x => ! string . IsNullOrWhiteSpace ( x . GetProperty ( "@id" ) . GetString ( ) )
727- )
728- )
729- {
730- if ( dependencyGroup . TryGetProperty ( "dependencies" , out JsonElement dependenciesElement ) )
731- {
732- foreach (
733- JsonElement dependency in dependenciesElement . EnumerateArray ( ) . Where (
734- x => ! string . IsNullOrWhiteSpace ( x . GetProperty ( "@id" ) . GetString ( ) )
735- )
736- )
737- {
738- pkgDeps . Add (
739- new Dependency (
740- dependency . GetProperty ( "id" ) . GetString ( ) ,
741- (
742- VersionRange . TryParse ( dependency . GetProperty ( "range" ) . GetString ( ) , out VersionRange versionRange ) ?
743- versionRange :
744- VersionRange . All
745- )
746- )
747- ) ;
748- }
749- }
750- }
751- metadata [ "Dependencies" ] = pkgDeps . ToArray ( ) ;
723+ // List<Dependency> pkgDeps = new();
724+ // foreach (
725+ // JsonElement dependencyGroup in dependencyGroupsElement.EnumerateArray().Where(
726+ // x => !string.IsNullOrWhiteSpace(x.GetProperty("@id").GetString())
727+ // )
728+ // )
729+ // {
730+ // if (dependencyGroup.TryGetProperty("dependencies", out JsonElement dependenciesElement))
731+ // {
732+ // foreach (
733+ // JsonElement dependency in dependenciesElement.EnumerateArray().Where(
734+ // x => !string.IsNullOrWhiteSpace(x.GetProperty("@id").GetString())
735+ // )
736+ // )
737+ // {
738+ // pkgDeps.Add(
739+ // new Dependency(
740+ // dependency.GetProperty("id").GetString(),
741+ // (
742+ // VersionRange.TryParse(dependency.GetProperty("range").GetString(), out VersionRange versionRange) ?
743+ // versionRange :
744+ // VersionRange.All
745+ // )
746+ // )
747+ // );
748+ // }
749+ // }
750+ // }
751+ // metadata["Dependencies"] = pkgDeps.ToArray();
752752 }
753753
754754 // IsPrerelease
0 commit comments