isaacabraham / get-programming-fsharp

Companion code repository for https://www.manning.com/books/get-programming-with-f-sharp
124 stars 57 forks source link

Lesson 33 sample html out of date #7

Open manuelsidler opened 4 years ago

manuelsidler commented 4 years ago

In lesson 33 you provide a sample html of the JSON.NET NuGet package site. It seems like the NuGet team has removed the this version indicator from their sites now.

Sample HTML image

Live Site image

Therefore the parsing logic to indicate the current version in your sample solution doesn't work anymore.

First solution that comes to my mind: get highest version where version string doesn't contain any dashes (eg 1.0.0.1, 2.5.8, 12.3, 16).

Second solution: use the HTML provider and check for the bg-info css class (which seems to indicate the current version on their site now): image

What do you think?