public bool IsCompatibleWith(FrameworkName framework) { if (framework == null) { throw new ArgumentNullException("framework"); } return(SupportedFrameworks.Any(f => VersionUtility.IsCompatible(framework, f))); }
public bool IsCompatibleWith(FrameworkName projectFramework, NetPortableProfileTable portableProfileTable) { if (projectFramework == null) { throw new ArgumentNullException("projectFramework"); } return(SupportedFrameworks.Any(packageFramework => VersionUtility.IsCompatible(projectFramework, packageFramework, portableProfileTable)) || portableProfileTable.HasCompatibleProfileWith(this, projectFramework, portableProfileTable)); }
public override string ToString() { if (SupportedFrameworks.Any()) { return(String.Format(CultureInfo.CurrentCulture, "{0} ({1})", AssemblyName, String.Join("; ", SupportedFrameworks))); } else { return(AssemblyName); } }
public bool IsFrameworkSupported(TargetFramework targetFramework) { return(SupportedFrameworks.Any(framework => framework.Equals(targetFramework))); }
public bool Supports(IEnumerable <SupportedFramework> frameworks) { return(frameworks.All( requiredFx => SupportedFrameworks.Any(fx => fx.IsMoreGeneralThan(requiredFx)) )); }