A project's packages.config file can be found in the root directory of that project (where the .proj file is). Open each packages.config file and look for a line similar to this one:
<package id="jQuery"
version="1.9.1"
targetFramework="net40" />
(The targetFramework
attribute may be different)Adding an
allowedVersions
attribute allows you to control what version will be used by NuGet during updates. Here's an example:
<package id="jQuery"
version="1.9.1"
allowedVersions="[1,2)"
targetFramework="net40" />
allowedVersions="[1,2)"
tells NuGet to grab the newest version that falls between v1.0 and v2.0 (excluding v2). This will likely be v1.9.1, the most current version before v2.0.0.For more information on NuGet versioning, please go to NuGet versioning documentation.
No comments:
Post a Comment