Mám nainstalovaný dotnet a v něm maui-android:
dotnet workload list
Installed Workload Id Manifest Version Installation Source
--------------------------------------------------------------------
android 33.0.68/7.0.100 SDK 7.0.100
wasm-tools-net6 7.0.7/7.0.100 SDK 7.0.100
maui-tizen 7.0.86/7.0.100 SDK 7.0.100
maui-android 7.0.86/7.0.100 SDK 7.0.100
Přesto když ve vytvořeném projektu zadám dotnet build, tak končím na chybě:
MSBuild version 17.4.4+8e9cb2952 for .NET
Determining projects to restore...
/usr/lib64/dotnet/sdk/7.0.108/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To build this project, the following workloads must be installed: maui-android [/root/dotnet/maui/maui.csproj::TargetFramework=net7.0-android]
/usr/lib64/dotnet/sdk/7.0.108/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To install these workloads, run the following command: dotnet workload restore [/root/dotnet/maui/maui.csproj::TargetFramework=net7.0-android]
Build FAILED.
/usr/lib64/dotnet/sdk/7.0.108/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To build this project, the following workloads must be installed: maui-android [/root/dotnet/maui/maui.csproj::TargetFramework=net7.0-android]
/usr/lib64/dotnet/sdk/7.0.108/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To install these workloads, run the following command: dotnet workload restore [/root/dotnet/maui/maui.csproj::TargetFramework=net7.0-android]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:01.18
Zkouším to na Alma 9.