NV.Templates.Mobile 2.1.3

There is a newer version of this package available.
See the version list below for details.
dotnet new install NV.Templates.Mobile::2.1.3                
This package contains a .NET Template Package you can call from the shell/command line.

Uno Platform Application Template

License Version Downloads

This is a mobile app project template using Uno Platform and the latest .NET practices.

Preview

From left to right: WinUI, iOS, and Android. Platform-Comparison-Preview

Note that scaling was adjusted to better fit this preview and therefore this image isn't representative of the actual device sizes.

Diagnostic Tools

Diagnostics-Overlay-Preview

Requirements

Visual Studio 2022 with .Net 7 are required.

This template largely relies on Uno Platform, if you want to make sure you got everything installed correctly on your machine, we encourage you to use uno-check, the documentation is available here

💡 It's also possible to use this template for a pure WinUI application, without any mobile aspect. All you would have to do is remove the .Mobile csproj from the generated solution.

Getting Started

We use dotnet project templates to easily create new projects. It simplifies the project renaming and supports conditional inclusions.

Generate a new project

  1. Install the template using this command.

    dotnet new install NV.Templates.Mobile

  2. To run the template and create a new project, run the following command in the folder that will contain the new project.

    dotnet new nv-mobile -n MyProjectName

    âš  The use of periods (.) in the project name is not supported and may result in compilation issues later on.

    💡 If all your projects are regrouped in a folder like C:\Repos, you want to be in that folder. The command would generate all the project files under C:\Repos\MyProjectName.

    The following options are available when running the command.

    • To get help: dotnet new nv-mobile -h

Next Steps

  1. Open the README.md and complete the documentation TODOs.

  2. Open the solution file from the generated folder using Visual Studio.

    It's located at MyProjectName/src/MyProjectName.sln.

  3. In Visual Studio, go to the VIEW menu and open the Task List to get hints on next steps.

    This template comes with several pointers on what you're most likely to change next.

    alternate text is missing from this package README image

Architecture and Recipes

This repository provides documentation on different topics under the doc folder.

Architecture

The software architecture of the application is documented in the Architecture document.

Summary of Recipes

Topic Recipe/Implementation
UI Framework WinUI<br/>Uno Platform
MVVM Chinook.DynamicMvvm
Dependency Injection Microsoft.Extensions.Hosting<br/>Microsoft.Extensions.DependencyInjection
Configuration Microsoft.Extensions.Configuration
Runtime Environments Microsoft.Extensions.Configuration
Design System Uno.Material<br/>Material Design
HTTP Refit<br/>Microsoft.Extensions.Http
Async Data Loading Chinook.DataLoader
Logging Serilog<br/>Microsoft.Extensions.Logging
Testing xUnit
Serialization System.Text.Json
Localization Microsoft.Extensions.Localization
Navigation Chinook.Navigation<br/>Chinook.BackButtonManager
Validation FluentValidation
App Reviews ReviewService

Debugging or Testing the Template

Here's how to install the template directly from the code, in the case that you want to modify it and would like to test your changes.

Installing the template

  1. Uninstall the template from nuget.org (if applicable).

    • dotnet new uninstall NV.Templates.Mobile
  2. Clone this repository on your machine.

  3. Open a command prompt at the root of the cloned repository.

  4. Run the following command.

    • dotnet new install ./

Read this for more information on custom templates.

Uninstalling the template

  1. Open a command prompt at the root of the cloned repository.

  2. Run the following command.

    • dotnet new uninstall ./

Changelog

Please consult the CHANGELOG for more information about the version history.

License

This project is licensed under the Apache 2.0 license. See the LICENSE for details.

Contributing

Please read CONTRIBUTING for details on the process for contributing to this project.

Be mindful of our Code of Conduct.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.5.4 100 10/9/2024
3.5.3 149 8/12/2024
3.5.2 110 7/11/2024
3.5.1 189 5/30/2024
3.5.0 444 5/16/2024
3.4.4 137 5/15/2024
3.4.3 144 5/13/2024
3.4.2 96 5/1/2024
3.4.1 119 4/25/2024
3.4.0 115 4/23/2024
3.3.0 121 4/18/2024
3.2.1 669 3/1/2024
3.2.0 692 2/9/2024
3.1.2 279 2/6/2024
3.1.1 547 1/23/2024
3.1.0 512 1/9/2024
3.0.1 195 1/12/2024
2.2.3 700 12/20/2023
2.2.2 362 12/12/2023
2.2.1 267 12/8/2023
2.2.0 244 12/5/2023
2.1.5 644 11/17/2023
2.1.4 172 11/16/2023
2.1.3 591 10/31/2023
2.1.2 222 10/30/2023
2.1.1 219 10/30/2023
2.1.0 933 10/3/2023
2.0.1 360 9/28/2023
2.0.0 265 9/28/2023
1.1.1 246 9/25/2023
1.1.0 202 9/19/2023
1.0.0 151 9/18/2023
0.76.8 231 9/11/2023
0.76.7 173 9/11/2023
0.76.6 200 9/11/2023
0.76.5 201 9/7/2023
0.76.4 195 9/6/2023
0.76.3 211 9/1/2023
0.76.2 263 8/28/2023
0.76.0 249 8/25/2023
0.75.2 237 8/24/2023
0.75.1 290 8/22/2023