I love to say “…if it’s not in NuGet, it’s DEAD to me…” – and for the most part that is very true. 🙂
If you don’t know what NuGet is – you MUST – look at Introducing NuGet: the smart way to bring bits into your projects
However, as I and many developers need to continue to support IE7/8 – we can’t update to the latest versions of jQuery or Bootstrap, as jQuery version 2.+ and Bootstrap version 3.+ no longer support IE7/8…
Also considering jQuery is continuing to update their 1.* version with updates – how do we handle that and continue to use NuGet inside of Visual Studio to show us when there are updates that we DO want to install?
Here’s the solution!
In your “packages.config” file – add the allowedVersions tag to both as follows ( noting that the right parenthesis looks strange, but it is correct – it means ‘less than version X’ )…
<package id="jQuery" version="1.10.2" allowedVersions="[1.9.1,2)" targetFramework="net45" />
<package id="bootstrap" version="2.3.1" allowedVersions="[2.3.1,3)" targetFramework="net45" />
Now when you open up NuGet ( noting that you need to close and reopen VS and the project ) – you see the following!
For this, we were on Bootstrap 2.3.1 – and only saw an upgrade to 3.0 – but now we see we can upgrade to the latest 2.3.2! And we’re currently at the latest jQuery 1.10.2 – so correctly don’t see an update – but we will when one comes out. 🙂
I love NuGet… 🙂