Project Description
CodePlex New Release Checker is a small library that makes it easy to add, "New Version Available!" functionality to your CodePlex project.

The simple library combines the Release Web Services with either the Release RSS Feed or a screen scrape of the Downloads page to create a few handy functions for accessing release related information.

The RSS feed only contains the last 20 releases, for most projects that should be fine, but if you need more use the ReleasedStripper class.

Using the RSS Feed for the project servicemon
     VersionChecker vcRssFeed = new VersionChecker("servicemon", new RssFeedReleases());

Using the screen scraping ReleasedStripper class with the project servicemon
    VersionChecker vcReleasedPageStripper = new VersionChecker("servicemon", new ReleasedStripper());

Full Example Code:
            VersionChecker vcReleasedPageStripper = new VersionChecker("servicemon", new ReleasedStripper());

            //get the release record for the version installed on the client (you'll need to track this in a config or base off of assembly version)
            Release client = vcReleasedPageStripper.GetReleaseByName("ServiceMon Release 0.9.0.82");
            //get the default release
            Release defaultRelease = vcReleasedPageStripper.GetDefaultRelease();
            //compare against the version installed on client (logic is up to you)
            if (defaultRelease.ReleaseDate > client.ReleaseDate)
            {
                //Notify user to upgrade
                var linkToDownload = defaultRelease.Link;
            }

Last edited Sep 22, 2012 at 3:32 AM by patricker, version 7