Querying package versions from a VSIX extension

Topics: General
May 27, 2014 at 11:03 PM
Is it possible to query the available package versions programmatically from an extension? I couldn't find a way to do it from the blessed NuGet service interfaces as described in http://blog.nuget.org/20120926/invoking-nuget-services-from-inside-visual-studio.html. If it is indeed not possible, is there a workaround? How else can versions other than the latest be installed if you don't want to hard-code them in the extension? E.g. get the last version for a given major package version so it can be installed.