static VersionRange AggregateVersions(VersionRange aggregate, VersionRange next) { var versionSpec = new VersionSpec(); SetMinVersion(versionSpec, aggregate); SetMinVersion(versionSpec, next); SetMaxVersion(versionSpec, aggregate); SetMaxVersion(versionSpec, next); if (versionSpec.MinVersion == null && versionSpec.MaxVersion == null) { return(null); } return(versionSpec.ToVersionRange()); }