Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
lawrence_shaun_introducing_net_maui_build_and_deploy_crosspl.pdf
Скачиваний:
46
Добавлен:
26.06.2023
Размер:
5.15 Mб
Скачать

Chapter 1 Introduction to .NET MAUI

How to Build .NET MAUI Applications

There are several different ways to build an application with .NET MAUI. I will look at each in turn, covering some details that will hopefully help you decide which is the best fit for you.

Visual Studio

Visual Studio is available for both Windows and macOS, but while these operating systems are both officially supported, it is worth noting that the Visual Studio products are separate and themselves not cross-platform. This means that functionality and levels of support differ between the two.

Note that the Windows and macOS versions come with three different pricing options, but I would like to draw your attention to the Community edition, which is free for use by small teams and for educational purposes. In fact, everything in this book can be achieved using the free Community edition.

Visual Studio (Windows)

Visual Studio is a comprehensive integrated development environment or IDE that provides a great development experience. I have been using this tool for years and I can happily say that it continues to improve with each new version.

To build .NET MAUI apps, you must use at least Visual Studio 2022. In Visual Studio (Windows), it is possible to build applications

that target

•\ Android

•\ iOS *

•\ Windows

15

Chapter 1 Introduction to .NET MAUI

* A networked Mac with Xcode 13.0 or above is required for iOS development and deployment. This is due to limitations in place by Apple.

Visual Studio for Mac

Visual Studio for Mac has only been released recently and as of 2022 it has undergone a significant rework to provide a better experience for developers.

To build .NET MAUI apps, you must use at least Visual Studio 2022 for Mac.

In Visual Studio for Mac, it is possible to build applications that target

•\ Android

•\ iOS

•\ macOS

Rider

JetBrains Rider is an impressive cross-platform IDE that can run on Windows, macOS, and Linux. JetBrains has a history of producing great tools to help developers achieve their goals. One highlight is ReSharper, which assists with inspecting and analyzing code. With Rider the functionality provided by ReSharper is built in.

JetBrains offers Rider for free but only for educational use and open-­ source projects.

Visual Studio Code

Visual Studio Code is a very popular lightweight code editor also provided by Microsoft. Using extensions and the dotnet CLI, it is entirely possible to build .NET MAUI applications using no other tools. It is worth noting, however, that the debugging experience is vastly inferior to the other products we have discussed.

16