We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cd6ca9a + 947ea4e commit 2a44e77Copy full SHA for 2a44e77
src/app/FakeLib/NuGet/NugetVersion.fs
@@ -8,7 +8,8 @@ open System.Xml
8
open System.Xml.Linq
9
10
type NuGetSearchItemResult =
11
- { Version:string
+ { Id:string
12
+ Version:string
13
Published:DateTime }
14
type NuGetSearchResult =
15
{ results:NuGetSearchItemResult list }
@@ -59,6 +60,7 @@ let getLastNuGetVersion server (packageName:string) =
59
60
then
61
let json = JsonConvert.DeserializeObject<NuGetSearchResponse>(text)
62
json.d.results
63
+ |> Seq.filter (fun i -> i.Id = packageName)
64
|> Seq.sortByDescending (fun i -> i.Published)
65
|> Seq.tryHead
66
|> fun i ->
0 commit comments