/// <nodoc /> protected static PackageId ReadPackageId(BuildXLReader reader) { var name = reader.ReadStringId(); var minVersion = reader.ReadStringId(); var maxVersion = reader.ReadStringId(); if (minVersion.IsValid && maxVersion.IsValid) { return(PackageId.Create(name, PackageVersion.Create(minVersion, maxVersion))); } return(PackageId.Create(name)); }