.NET Multi-platform App UI (.NET MAUI) is a cross-platform framework for creating native mobile and desktop apps with C# and XAML. Using .NET MAUI, you can develop apps that can run on Android, iOS, macOS, and Windows from a single shared code-base (https://docs.microsoft.com/en-us/dotnet/maui/what-is-maui)

.NET MAUI is the next level of Xamarin, if you familiar with Xamarin, then you will love it, it will design your UI more simple. and this post is my personal documentation during preparation .NET MAUI development

  1. Error Workload installation failed: Source and destination path must have identical roots. Move will not work across volumes. when running dotnet workload install maui
    • Solution: use parameter –temp-dir=c:\temp\ after dotnet workload install mauithe problem is your temporary directory is different with your system drive, i.e d:\temp\, e:\temp\
  2. Error Error: Error resolving type specified in JSON ‘DotNetCheck.Manifest.NuGetFeedVariableMapper, MauiCheck’. Path ‘check.variableMappers[0].$type’, line 9, position 74.  after running maui-check
    • Solution : run dotnet tool update -g Redth.Net.Maui.Check to update maui-check
  3. Error install component of MAUI/workload dotnet workload install maui –temp-dir c:\temp\
    • Solution: run this command dotnet workload install –sdk-version 6.0.100-preview.7.21379.14 –no-cache –disable-parallel android-aot ios maccatalyst tvos macos maui wasm-tools –source “https://api.nuget.org/v3/index.json” –source “https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-preview.7.21379.14-shipping-1/nuget/v3/index.json” –source “https://pkgs.dev.azure.com/azure-public/vside/_packaging/xamarin-impl/nuget/v3/index.json” –source “https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json” –temp-dir=c:\temp\, it will install all component without error. What I’m do is remove –skip-manifest-update in the command.

For information, my machine runs

  • Windows 11 Version 10.0.22000.120
  • Visual Studio Community Edition 17.0.0-pre.3
  • Visual Studio Community Edition 16.11.0 

 

UPDATE:

After updating VS2022 pre 2.1 to VS2022 pre 3, installing .NET MAUI successful without error

Microsoft Windows [Version 10.0.22000.120]
(c) Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>maui-check
_ _ _____ _____ __ __ _ _ _ ___
| \ | | | ____| |_ _| | \/ | / \ | | | | |_ _|
| \| | | _| | | | |\/| | / _ \ | | | | | |
_ | |\ | | |___ | | | | | | / ___ \ | |_| | | |
(_) |_| \_| |_____| |_| |_| |_| /_/ \_\ \___/ |___|

.NET MAUI Check v0.7.3.0
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────This tool will attempt to evaluate your .NET MAUI development environment.
If problems are detected, this tool may offer the option to try and fix them for you, or suggest a way to fix them
yourself.

Thanks for choosing .NET MAUI!
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────» Synchronizing configuration… ok
» Scheduling appointments… ok

> OpenJDK 11.0 Checkup…
– 11.0.10 (C:\Program Files\Microsoft\jdk-11.0.10.9-hotspot\bin\..)
– 1.8.0-25 (C:\Program Files\Android\Jdk\microsoft_dist_openjdk_1.8.0.25)

> Visual Studio 17.0.0-pre.3.0 Checkup…
– 17.0.0-pre.3.0 – C:\Program Files\Microsoft Visual Studio\2022\Preview
– 16.11.0

> Android SDK Checkup…
– emulator (30.7.5)
– build-tools;30.0.2 (30.0.2)
– platforms;android-30 (3)
– system-images;android-30;google_apis;x86 (9)
– platform-tools (30.0.4)
– cmdline-tools;3.0 (3.0)

> Android Emulator Checkup…
– Emulator: pixel_2_pie_9_0_-_api_28 found.

> .NET SDK Checkup…
– 2.1.524 – C:\Program Files\dotnet\sdk\2.1.524
– 3.1.411 – C:\Program Files\dotnet\sdk\3.1.411
– 5.0.100 – C:\Program Files\dotnet\sdk\5.0.100
– 5.0.103 – C:\Program Files\dotnet\sdk\5.0.103
– 5.0.302 – C:\Program Files\dotnet\sdk\5.0.302
– 5.0.400 – C:\Program Files\dotnet\sdk\5.0.400
– 6.0.100-preview.7.21379.14 – C:\Program Files\dotnet\sdk\6.0.100-preview.7.21379.14

> .NET SDK – Workload Deduplication Checkup…

> Edge WebView2 Checkup…
– Found Edge WebView2 version 92.0.902.67

> .NET SDK – Workloads (6.0.100-preview.7.21379.14) Checkup…
– android-aot (Microsoft.NET.Sdk.Android.Manifest-6.0.100 : 30.0.100-preview.7.110) installed.
– ios (Microsoft.NET.Sdk.iOS.Manifest-6.0.100 : 15.0.100-preview.7.230) installed.
– maccatalyst (Microsoft.NET.Sdk.MacCatalyst.Manifest-6.0.100 : 15.0.100-preview.7.230) installed.
– tvos (Microsoft.NET.Sdk.tvOS.Manifest-6.0.100 : 15.0.100-preview.7.230) installed.
– macos (Microsoft.NET.Sdk.macOS.Manifest-6.0.100 : 12.0.100-preview.7.230) installed.
– maui (Microsoft.NET.Sdk.Maui.Manifest-6.0.100 : 6.0.100-preview.7.1345) installed.
– wasm-tools (microsoft.net.workload.mono.toolchain.manifest-6.0.100 : 6.0.0-preview.7.21377.19) installed.
– microsoft-net-sdk-emscripten (microsoft.net.workload.emscripten.manifest-6.0.100 : 6.0.0-preview.7.21377.2)
installed.
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
– Congratulations, everything looks great!

Press enter to exit…


C:\WINDOWS\system32>dotnet workload install maui

Updated advertising manifest microsoft.net.sdk.android.
Updated advertising manifest microsoft.net.workload.mono.toolchain.
Updated advertising manifest microsoft.net.sdk.maccatalyst.
Updated advertising manifest microsoft.net.workload.emscripten.
Updated advertising manifest microsoft.net.sdk.ios.
Updated advertising manifest microsoft.net.sdk.macos.
Updated advertising manifest microsoft.net.sdk.tvos.
Updated advertising manifest microsoft.net.sdk.maui.
Installing workload manifest microsoft.net.sdk.maui version 6.0.100-rc.1.1351.
Installing pack Microsoft.Maui.Core.Ref.android version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Core.Ref.android version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Core.Runtime.android version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Core.Runtime.android version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Controls.Ref.android version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Controls.Ref.android version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Controls.Runtime.android version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Controls.Runtime.android version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Essentials.Ref.android version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Essentials.Ref.android version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Essentials.Runtime.android version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Essentials.Runtime.android version 6.0.100-rc.1.1351…
Installing pack Microsoft.AspNetCore.Components.WebView.Maui version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.AspNetCore.Components.WebView.Maui version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Dependencies version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Dependencies version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Controls.Sdk version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Controls.Sdk version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Extensions version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Extensions version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Resizetizer.Sdk version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Resizetizer.Sdk version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Templates version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Templates version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Core.Ref.any version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Core.Ref.any version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Core.Runtime.any version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Core.Runtime.any version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Controls.Ref.any version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Controls.Ref.any version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Controls.Runtime.any version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Controls.Runtime.any version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Essentials.Ref.any version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Essentials.Ref.any version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Essentials.Runtime.any version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Essentials.Runtime.any version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Core.Ref.ios version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Core.Ref.ios version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Core.Runtime.ios version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Core.Runtime.ios version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Controls.Ref.ios version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Controls.Ref.ios version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Controls.Runtime.ios version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Controls.Runtime.ios version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Essentials.Ref.ios version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Essentials.Ref.ios version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Essentials.Runtime.ios version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Essentials.Runtime.ios version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Core.Ref.maccatalyst version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Core.Ref.maccatalyst version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Core.Runtime.maccatalyst version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Core.Runtime.maccatalyst version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Controls.Ref.maccatalyst version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Controls.Ref.maccatalyst version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Controls.Runtime.maccatalyst version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Controls.Runtime.maccatalyst version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Essentials.Ref.maccatalyst version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Essentials.Ref.maccatalyst version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Essentials.Runtime.maccatalyst version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Essentials.Runtime.maccatalyst version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Core.Ref.win version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Core.Ref.win version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Core.Runtime.win version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Core.Runtime.win version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Controls.Ref.win version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Controls.Ref.win version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Controls.Runtime.win version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Controls.Runtime.win version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Essentials.Ref.win version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Essentials.Ref.win version 6.0.100-rc.1.1351…
Installing pack Microsoft.Maui.Essentials.Runtime.win version 6.0.100-rc.1.1351…
Writing workload pack installation record for Microsoft.Maui.Essentials.Runtime.win version 6.0.100-rc.1.1351…
Garbage collecting for SDK feature bands 6.0.100…
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.
Uninstalling workload pack version 6.0.100-preview.7.1345.

Successfully installed workload(s) maui android-aot ios maccatalyst macos tvos wasm-tools.