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

Chapter 2 Building Our First application

Troubleshooting Installation Issues

Given that there are several moving parts in the development ecosystem when building .NET MAUI applications, there is room for things to go wrong. In this section, I will go over a few common issues and how to check that things are correctly set up.

.NET MAUI Workload Is Missing

In order to check whether the .NET MAUI workload has been installed, you can check either in Visual Studio Installer or through the command line.

Visual Studio Installer

This currently only works on Windows, but you can follow these steps.

\1.\ Open the Start menu.

\2.\ Type in Visual Studio Installer.

\3.\ Open the installer.

\4.\ Select Modify on the Visual Studio 2022 installation.

\5.\ View the workloads and check that the Mobile development with .NET workload is ticked.

Command Line

This has the benefit of working on both Windows and macOS.

\1.\ Open a Terminal session.

\2.\ Run the following command:

dotnet workload list

32