MVVMbasics Templates

↑ back to the MVVMbasics main page


Although it’s really easy and straightforward to set up a Visual Studio project based on the MVVMbasics framework, you don’t need to repeat the necessary steps for each newly created project. Instead, there are template projects available you can build your Apps upon.

If you are using Visual Studio 2012 or newer, simply search for “MVVMbasics” within the Extensions and Updates wizard (Tools menu -> Extensions and Updates…), or download and install the MVVMbasics Project Templates from Visual Studio Gallery.

After the installation has completed, you’ll find 6 new project types in Visual Studio’s New Project wizard (File menu -> New -> Project…), namely within the Visual C# -> Multi-Platform category. To create an App that is based on MVVMbasics, follow a few simple steps:

  1. Create a project of type Multi-Platform Application Core using MVVMbasics as a new solution, choose project name and location. This project will include all your Models, Viewmodels, Service interfaces, and Service implementations of all Services that can be implemented in a platform-independent way.
  2. Right-click the newly created solution in Solution Explorer, choose Add -> New Project…, navigate to the Visual C# -> Multi-Platform category and select one of the additional project called “xxx App for MVVMbasics Core project”, depending on which platform your App shall target. Visual Studio will add a new project of the chosen type and automatically configure the necessary references to the existing core project. This platform-dependent project will include all your Views as well as platform-dependent Service implementations.
  3. If you want your App to target multiple platforms, simply repeat step 2 for all desired target platforms! All platform-dependent projects added to the solution will automatically be configured to reference the Viewmodels and Models defined within the Core project.

After the projects have been created, search for the code lines marked as //TODO as these guide you through the necessary steps to finalize project set up.