#mvvmlight V4RC available on #nuget

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

 

Print | posted on Sunday, April 22, 2012 9:13 PM

Feedback

# re: #mvvmlight V4RC available on #nuget

left by Henrique Duarte at 4/22/2012 11:22 PM Gravatar
Awesome news!!!
Well done!

# re: #mvvmlight V4RC available on #nuget

left by James Hansen at 5/10/2012 9:47 PM Gravatar
I installed the v4 RC using NuGet after uninstalling the previous version, v4.0.0.19, which I installed via the MSI installer. After installing with NuGet there are no snippets and no templates. There is no folder "C:\Program Files (x86)\Laurent Bugnion (GalaSoft)" so I cannot apply the fix you described for the Windows 8 version in your April 6 blog. I have searched my entire "C:\Program Files (x86)" folder for a file named "mvvmInpc.snippet" and not found it. I have uninstalled and reinstalled again via NuGet, making doubly sure I installed the full version, with no luck. I am running VS2010 SP1 under Win7 x64 and installed NuGet for the first time just before installing the RC three days ago.

# re: #mvvmlight V4RC available on #nuget

left by James Hansen at 5/14/2012 5:07 PM Gravatar
Please provide an MSI installer for the RC. In addition to not having any snippets or templates with NuGet, it turns out NuGet can't cope with Wix installer projects at the solution level, so I can't even install a package at the solution level if it contains a Wix project.

# re

left by Criminal Lawyer at 8/3/2012 10:08 AM Gravatar
Yes, I think this post is very usefull for people who interest in this problem!
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: