Lance Larsen - .NET Architect Madison Wisconsin

Archive for August, 2013

imageimageI 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" />

imageNow 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… :)


45544_mod_gyroboy_01_LeftAre you are new to robotics? Or do you go to bed dreaming of counting cybernetic-sheep? In either case, Lego Mindstorms EV3 has just released an awesome next generation robot kit that’s made for everyone! EV3 adds never before seen functionality in a format accessible to all current and future programmers. Learn how to start teaching and showing others how to use the Lego programming tools! And just have fun with Robots! :)

PowerPoint presentation from ThatConference 2013 (Big 109MB!)

Check out the EV3 Core Set on Lego Education US!