Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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)));
        }