package.config version convention

Oct 19, 2011 at 11:35 AM

Hi, there is a convention for package versionning in nuspec files but there is no way to specify version range in package.config. I would like to specify : I would like the latest available version of this package (without need to manually update).

Is this possible ?

Oct 19, 2011 at 11:40 AM

You still need to install the package to get it, there's nothing that will automatically install the package based on what's in packages.config. There's is a way to control the version range for updates (using AllowedVersion but I don't know if that's what you're looking for.

Oct 19, 2011 at 12:28 PM
Edited Oct 19, 2011 at 1:44 PM

Thanks for your reply.

That's not exactly what I want : I would like to write in my package.config

<package id="myPackage" version="1.1" />


and the following prebuild-event in visual studio :  nuget install "$(ProjectDir)packages.config" -o "$(SolutionDir)packages"

will find and download the highest version of myPackage whose revision number is prefixed by 1.1 (e.g 1.1.487.4547)


currently if I specify any range given on the doc (for nuspec file), it does not work.

Ideally this would follow the convention of