Adding MVVM Light to an Existing Project
To add MVVM Light to an existing project, use the NuGet package manager. This is the recommended method for downloading and integrating MVVM Light.
Getting the Source Code
If you’re interested, you can access the source code for MVVM Light. This is optional. MVVM Light is an open-source project licensed under the MIT License.
Cleaning Up Before Installation
Due to its long history, MVVM Light may have installed files in various locations. To avoid potential issues, it is advisable to clean up old files if you have previously installed older versions manually. You can download a cleanup application and follow the instructions on the “Cleaning” page to assist with this process.
Installation Instructions
The easiest way to install MVVM Light in Visual Studio 2012 and 2013 is through the Extensions and Updates gallery:
- Start Visual Studio 2012 or 2013.
- Select Tools > Extensions and Updates.
- In the Extensions and Updates dialog, select Online on the left-hand side.
- Enter “mvvm light” in the search field.
- Click the Download button.
- Wait for the download to complete.
- Accept the license agreement.
- Click the Restart button.
Once MVVM Light is installed, you can go to File > New Project and find the MVVM Light project templates ready for use. Additionally, if you place the cursor in your code and type “mvvm”, you will see available code snippets.
Visual Studio 2010
Currently, there is no full installer support for Visual Studio 2010. For now, please use NuGet to add MVVM Light to your application in Visual Studio 2010.