private static bool ArePlatformsEqual(PlatformData platformData, ImageData imageData, PlatformInfo platform, ImageInfo manifestImage) { PlatformData otherPlatform = PlatformData.FromPlatformInfo(platform, manifestImage); // We can't use PlatformData.CompareTo here because it relies on having its PlatformInfo and ImageInfo values fully populated // which is what this class is trying to make happen. return(!platformData.HasDifferentTagState(otherPlatform) && platformData.GetIdentifier(excludeProductVersion: true) == otherPlatform.GetIdentifier(excludeProductVersion: true) && AreProductVersionsEquivalent(imageData.ProductVersion, manifestImage.ProductVersion)); }