/// <summary> /// Return the item with the target framework nearest the project framework /// </summary> public static T GetNearest <T>(this IEnumerable <T> items, NuGetFramework projectFramework) where T : class, IFrameworkSpecific { return(NuGetFrameworkUtility.GetNearest(items, projectFramework, e => e.TargetFramework)); }
/// <summary> /// Return the item with the target framework nearest the project framework /// </summary> public static IFrameworkSpecific GetNearest(this IEnumerable <IFrameworkSpecific> items, NuGetFramework projectFramework) { return(NuGetFrameworkUtility.GetNearest <IFrameworkSpecific>(items, projectFramework, e => e.TargetFramework)); }