Skip to content

Lesson 33 sample html out of date #7

Open
@manuelsidler

Description

@manuelsidler

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions