NV.Templates.Mobile 3.4.2

dotnet new install NV.Templates.Mobile::3.4.2
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.4.2 45 5/1/2024
3.4.1 91 4/25/2024
3.4.0 80 4/23/2024
3.3.0 87 4/18/2024
3.2.1 619 3/1/2024
3.2.0 642 2/9/2024
3.1.2 225 2/6/2024
3.1.1 497 1/23/2024
3.1.0 469 1/9/2024
3.0.1 149 1/12/2024
2.2.3 657 12/20/2023
2.2.2 318 12/12/2023
2.2.1 226 12/8/2023
2.2.0 199 12/5/2023
2.1.5 603 11/17/2023
2.1.4 126 11/16/2023
2.1.3 548 10/31/2023
2.1.2 181 10/30/2023
2.1.1 175 10/30/2023
2.1.0 886 10/3/2023
2.0.1 315 9/28/2023
2.0.0 221 9/28/2023
1.1.1 203 9/25/2023
1.1.0 160 9/19/2023
1.0.0 108 9/18/2023
0.76.8 184 9/11/2023
0.76.7 128 9/11/2023
0.76.6 154 9/11/2023
0.76.5 158 9/7/2023
0.76.4 151 9/6/2023
0.76.3 167 9/1/2023
0.76.2 219 8/28/2023
0.76.0 208 8/25/2023
0.75.2 196 8/24/2023
0.75.1 246 8/22/2023