diff --git a/src/app/FakeLib/NuGet/NugetVersion.fs b/src/app/FakeLib/NuGet/NugetVersion.fs index 56b500b7451..9f00b9307c7 100644 --- a/src/app/FakeLib/NuGet/NugetVersion.fs +++ b/src/app/FakeLib/NuGet/NugetVersion.fs @@ -8,7 +8,8 @@ open System.Xml open System.Xml.Linq type NuGetSearchItemResult = - { Version:string + { Id:string + Version:string Published:DateTime } type NuGetSearchResult = { results:NuGetSearchItemResult list } @@ -59,6 +60,7 @@ let getLastNuGetVersion server (packageName:string) = then let json = JsonConvert.DeserializeObject(text) json.d.results + |> Seq.filter (fun i -> i.Id = packageName) |> Seq.sortByDescending (fun i -> i.Published) |> Seq.tryHead |> fun i ->