diff --git a/src/Paket.Core/NuGetV3.fs b/src/Paket.Core/NuGetV3.fs index 5798ba9381..b95deaab70 100644 --- a/src/Paket.Core/NuGetV3.fs +++ b/src/Paket.Core/NuGetV3.fs @@ -53,8 +53,7 @@ let calculateNuGet2Path(nugetUrl:string) = | "https://api.nuget.org/v3/index.json" -> Some "https://nuget.org/api/v2" | "http://api.nuget.org/v3/index.json" -> Some "http://www.nuget.org/api/v2" | "https://api.nuget.org/v3/index.json" -> Some "https://www.nuget.org/api/v2" - | url when url.EndsWith("/nuget/v3/index.json") && url.Contains("pkgs.visualstudio.com") -> Some (url.Replace("/nuget/v3/index.json","/nuget/v2")) - | url when url.EndsWith("/nuget/v3/index.json") -> Some (url.Replace("/nuget/v3/index.json","/nuget/v2")) // For on-premise TFS we don't know host as for VSTS + | url when url.EndsWith("/nuget/v3/index.json") -> Some (url.Replace("/nuget/v3/index.json","/nuget/v2")) | url when url.EndsWith("/api/v3/index.json") && url.Contains("visualstudio.com") -> Some (url.Replace("/api/v3/index.json","")) | url when url.EndsWith("/api/v3/index.json") && url.Contains("myget.org") -> Some (url.Replace("/api/v3/index.json","")) | url when url.EndsWith("v2") -> Some url