示例#1
0
 public static bool IsTransitiveDependency(this IProject project, NuGetReference nugetReference)
 => project.ContainsDependency(d => d.ReferenceSatisfiesDependency(nugetReference, true));
示例#2
0
 public static bool IsTransitivelyAvailable(this IProject project, string packageName)
 => project.ContainsDependency(d => string.Equals(packageName, d.Id, StringComparison.OrdinalIgnoreCase));