public static int CompareVersions(string providedVersion, string supportedVersion) { try { var v1 = Version.Parse(providedVersion); var v2 = Version.Parse(supportedVersion); return(v1.CompareTo(v2)); } catch { } return(int.MinValue); }
public static int CompareVersions(string providedVersion, string supportedVersion) { try { var v1 = Version.Parse(providedVersion); var v2 = Version.Parse(supportedVersion); return(v1.CompareTo(v2)); } catch { } return(int.MinValue); }