public void SameOrLess3_Test() { var First = new FrameworkName(".NETFramework", new Version("3.2")); var Second = new FrameworkName(".netFrameworka,Version = v3.5"); IsFalse(First.SameOrLess(Second)); }
public static FrameworkName FindCompatibleFramework(this IEnumerable <FrameworkName> input, FrameworkName targetFramework) { var sameFrameworks = input.FindFrameworks(targetFramework); return(sameFrameworks.OrderByDescending(a => a.Version) .FirstOrDefault(a => targetFramework.SameOrLess(a))); }