Book Image

.NET MAUI Projects - Third Edition

By : Michael Cummings, Daniel Hindrikes, Johan Karlsson
4 (2)
Book Image

.NET MAUI Projects - Third Edition

4 (2)
By: Michael Cummings, Daniel Hindrikes, Johan Karlsson

Overview of this book

This third edition of .NET MAUI Projects explores the features of .NET MAUI, a lightweight multi-platform development toolkit for building apps with a rich user interface. Updated to cover the latest features of .NET MAUI, including CollectionView and Shell, this book delves into concepts such as machine learning and cloud services. Starting with an overview of .NET Core and how it works, this book shares tips for choosing the right development environment for planning multi-platform apps. You'll then build your first .NET MAUI app and advance to learning how to use Shell to implement app architecture. Progressing in complexity, the projects guide you through creating apps, ranging from a location tracker and weather map to machine learning and multiplayer games. Further, the book will take you through modern mobile development frameworks such as SQLite, .NET Core, and ML.NET, empowering you to customize your apps for Windows, macOS, Android, and iOS platforms for native-like performance. Engaging examples are woven throughout the book so you can grasp essential concepts by writing code rather than extensive theory. By the end of this book, you'll be ready to develop your own native apps using .NET MAUI and associated technologies such as .NET Core, Visual Studio 2022, and C#.
Table of Contents (18 chapters)
1
Part 1: Introduction
5
Part 2: Basic Projects
11
Part 3: Advanced Projects

Hot Dog or Not Hot Dog Using Machine Learning

In this chapter, we will learn how to use machine learning to create a model that we can use for image classification. We will export the model as an Onnx model that we can use on all platforms – that is, Android, iOS, macOS, and Windows. To train and export models, we will use Azure Cognitive Services and the Custom Vision service.

Once we have exported the models, we will learn how to use them in a .NET MAUI app.

The following topics will be covered in this chapter:

  • Training a model with Azure Cognitive Services and the Custom Vision service
  • Using Onnx models for image classification using ML.NET
  • Using custom routes in .NET MAUI for navigation