#mvvmlight V4RC available on #nuget

.NET, MVVM, Phone, Silverlight, Technical stuff, Windows 8, Windows Phone, Work, WPF
No Comments

This post was imported from my old blog and had 4 comments which are included as a screenshot at the end of this post.

I just published the MVVM Light V4 RC packages to Nuget. Note that this is still technically a preview, so the main package is still V3. The V4 packages are available here:

  • Package with libraries and content:
    When you install this package into a “virgin” application (i.e. an application without ViewModelLocator, preferably a brand new application), it installs a new ViewModel folder with a MainViewModel, ViewModelLocator and adds an entry into the App.xaml file to intialize a the ViewModelLocator in the global resources.
    Do not use this package if you want only the libraries, this will add content files!
  • Package with libraries only:
    This installs and references only the libraries.

Both packages are available for Silverlight 3, Silverlight 4, Silverlight 5, .NET3.5SP1, .NET4, Windows Phone 7.0, Windows Phone 7.1 and Windows 8 (WinRT). That last one is brand new! :)

Nuget prerequisites

Follow the steps to install Nuget (if needed):

  • In Visual Studio 10 or 11, select the menu Tools, Extension Manager.
  • In the Extension manager, select Online Extensions, Visual Studio Gallery.
  • In the field marked “Search Installed Extensions:, enter “nuget”.
  • Select the Nuget entry and then press Install.
  • Restart Visual Studio.

Installing from VS directly

In Visual Studio, follow these steps to install the packages:

  • Open an application without MVVM Light installed.
  • Right click on the project and select Manage Nuget Packages.

2012042201

  • In the Manage Nuget Packages dialog, select Online (on the left).
  • Enter “mvvmlight” in the Search Online field.
  • You will see four choices:
    • MVVM Light: This is the stable release (V3RTM) with content files. Not available for Windows 8!
    • MVVM Light libraries only: This is the stable release (V3RTM), only libraries. Not available for Windows 8!
    • MVVM Light [Preview]: This is V4RC with content files.
    • MVVM Light libraries only [Preview]: This is V4RC, only libraries.
  • Select the package you want to install and press Install.

2012042202

That’s it.

Updating from VS directly

If you have a previous version already installed, you can look for the update with the following steps:

  • Right click on the project and select Manage Nuget Packages.
  • In the Manage Nuget Packages dialog, click on Updates.
  • If an update for the given package is available, you can install it from there,

As usual, please try it out and let me know if something does not work right!

Happy coding
Laurent

GalaSoft Laurent Bugnion
Laurent Bugnion (GalaSoft)
Share on Facebook



This post was imported from my old blog. Original comments screenshot: 2013112503

Leave a Reply