Templates for Xamarin / C# projects that use a scalable Onion Architecture. These templates make use of Separation of Concerns, Model View ViewModel, Inversion of Control, and Dependency Injection. There is an assumption that the user of these templates has an understanding of these concepts at a high level.
This is where the solution and projects exist for the templates
This is where the actual Visual Studio Templates exist
- Download or Pull the repo
- Copy each of the desired template .zip files from
Templates
that you want to have in VS - Paste them into your VS Project Templates folder. (Typically
Documents\Visual Studio 2015\Templates\ProjectTemplates
) - Open Visual Studio
- Create New Project
- Navigate to the
Visual C#
subtree - Find the template(s) you added (ex: "Xamarin Forms Scalable Project")
- Select the template of your choosing
- Name the project
- Suggested: Right click Solution > Restore Nuget Packages
- Choose start up project from the three platforms
- Run
Because you've added a large template to your VS installation, it needs to initialize these in order for them to be usable. After a template is initialized, it is cached and this process will be quicker. Just give it some time.
This error can happen when one of the Xamarin.Forms projects has issues updating from its nuget packages. Do a Clean, then Restore Nuget Packages, then try again.
Pull Requests are checked bi-daily. Some of the main focuses for next steps are:
- Creating more templates for Xamarin Native projects
- Creating more templates for Xamarin projects that include wearables
- Creating more templates for Xamarin projects that include Xamarin.Mac projects as well as other .NET projects
- Creating more templates that include all possible mobile/desktop application projects
- Updating documentation
- Creating more rich example projects
For details on the project structure, check out the README
's in the src
projects. They go into more details about the roles of each project and the source as a whole.