public void RemoveFromAllCaches(IActivityMonitor m, IEnumerable <ArtifactInstance> instances)
 {
     foreach (var n in instances)
     {
         if (n.Artifact.Type == NuGetClient.NuGetType)
         {
             EnvLocalFeedProviderExtension.DoRemoveFromNuGetCache(m, n.Artifact.Name, n.Version);
         }
     }
 }
예제 #2
0
 /// <summary>
 /// Gets the best version for a NuGet package.
 /// </summary>
 /// <param name="m">The monitor to use.</param>
 /// <param name="packageId">The package name.</param>
 /// <returns>The version or null if not found.</returns>
 public static SVersion GetBestNuGetVersion(this IEnvLocalFeed @this, IActivityMonitor m, string packageId)
 {
     return(EnvLocalFeedProviderExtension.GetMaxVersionFromFeed(@this.PhysicalPath, packageId));
 }