public RuntimeGroup(ITaskItem item) { BaseRID = item.ItemSpec; Parent = item.GetString(nameof(Parent)); Versions = item.GetStrings(nameof(Versions)); TreatVersionsAsCompatible = item.GetBoolean(nameof(TreatVersionsAsCompatible), true); OmitVersionDelimiter = item.GetBoolean(nameof(OmitVersionDelimiter)); ApplyVersionsToParent = item.GetBoolean(nameof(ApplyVersionsToParent)); Architectures = item.GetStrings(nameof(Architectures)); AdditionalQualifiers = item.GetStrings(nameof(AdditionalQualifiers)); OmitRIDs = new HashSet <string>(item.GetStrings(nameof(OmitRIDs))); OmitRIDDefinitions = new HashSet <string>(item.GetStrings(nameof(OmitRIDDefinitions))); OmitRIDReferences = new HashSet <string>(item.GetStrings(nameof(OmitRIDReferences))); }