You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Workload ID maui-android is not recognizedΒ #38171
How did you install the SDK? What's in the dotnet/sdk-manifests folder? Seems like a bad install.
First i used snap-store's NET8 SDK package for installation, but the resulting read-only directory where it's binaries are put in prohibits further dotnet workload installations. So i went on fiddling around as documented in #18933 but in the end i wasn't able to get the maui-android workload to run with NET8. So i completely purged all dotnet artifacts particularly to beware of the dreaded package-mixups documented in the official microsoft-learn article and reinstalled it according the official docs for ubuntu 23.10 where i decided to stay on the official canonical package repo (instead of microsofts provided one for easier future upgrades).
Proofing myself everything worked as expected i newed-up a blazor projected utilizing dotnet tool's provided template. For completeness i'd like to mention since this is a new setup i also went on installing the azure CLI, but this time - lacking any other options - choosing the microsoft package repo for ubuntu jammy.
~$ sudo find / -name sdk-manifests
...
/usr/lib/dotnet/sdk-manifests
...
~$ ls -la /usr/lib/dotnet/sdk-manifests/
total 12
drwxr-xr-x 3 root root 4096 Jan 20 13:29 .
drwxr-xr-x 9 root root 4096 Jan 20 13:29 ..
drwxr-xr-x 9 root root 4096 Jan 20 13:29 8.0.100
~$ dotnet --version
8.0.101
~$ dotnet --list-sdks
8.0.101 [/usr/lib/dotnet/sdk]
~$ ls -la /usr/lib/dotnet/sdk-manifests/8.0.100/
total 36
drwxr-xr-x 9 root root 4096 Jan 20 13:29 .
drwxr-xr-x 3 root root 4096 Jan 20 13:29 ..
drwxr-xr-x 3 root root 4096 Jan 20 13:29 microsoft.net.sdk.aspire
drwxr-xr-x 3 root root 4096 Jan 20 13:29 microsoft.net.workload.emscripten.current
drwxr-xr-x 3 root root 4096 Jan 20 13:29 microsoft.net.workload.emscripten.net6
drwxr-xr-x 3 root root 4096 Jan 20 13:29 microsoft.net.workload.emscripten.net7
drwxr-xr-x 3 root root 4096 Jan 20 13:29 microsoft.net.workload.mono.toolchain.current
drwxr-xr-x 3 root root 4096 Jan 20 13:29 microsoft.net.workload.mono.toolchain.net6
drwxr-xr-x 3 root root 4096 Jan 20 13:29 microsoft.net.workload.mono.toolchain.net7
@marcpopMSFT, as you requested I've listed some details about my setup. Have you any ideas what's going on here? I find it very suspicious that a workload search request won't find any maui workloads:
~$ dotnet workload search 'wasm'
Workload ID Description
----------------------------------------------------------------------------
wasm-experimental workloads/wasm-experimental/description
wasm-experimental-net7 .NET WebAssembly experimental tooling for net7.0
wasm-tools .NET WebAssembly build tools
wasm-tools-net6 .NET WebAssembly build tools for net6.0
wasm-tools-net7 .NET WebAssembly build tools for net7.0
~$ dotnet workload search 'maui'
Workload ID Description
----------------------------
~$ dotnet workload search 'android'
Workload ID Description
----------------------------
~$
@ndr0n :
(a) also on UB 23.10 ?
(b) also NET 8 installation via snap, its removal afterwards and re-installation via official canonical package repo ?
(c) registration of any other microsoft package repo ?
I had this same issue on Arch after installing dotnet-sdk 8.0.101 with pacman. I fixed this by downloading dotnet via the install scripts (https://dotnet.microsoft.com/en-us/download/dotnet/scripts) and copying the sdk-manifests from "~/.dotnet/sdk-manifests/8.0.100" to "/usr/share/dotnet/sdk-manifests/8.0.100". Afterwards you are able to install maui-android.
Hope this helps anyone that comes across this issue
Reacted by Vladimir Kopylov, martin, yamal000, Jan, Ace, Rodrigo Alban, IvΓ‘n, Michelle, zllvm, DarylBeaumont and 2 more
@PartedLine thx for sharing; But doing it this way puts us back in the pre-packagemanager era where you'll have to fiddle around managing all the sdk and tooling dependencies by your self. I'd say arguable for a not officially supported distro but not the support you might expect from an officially supported distro.
I have the same problem on ArchLinux. Took a look at arch dotnet-sdk package source code and as far as I can see there is no custom logic there around sdk-manifests. It just grubs the official sdk sources from dotnet/dotnet repo, builds it and copies sdk-manifests folder to usr/share/dotnet.
So maybe there is a problem in dotnet sdk itself?
The common thread here is that all of these distributions of the .NET SDK are build using source-build. Source-Build SDKs do not have all of the same workloads as MIcrosoft-authored SDKs. You can read more about this in dotnet/source-build#3242. This is something that I think we will need to address soon.
In the meantime, if you need MAUI workloads I'd suggest using the dotnet-install scripts to install a 'local install' of the Microsoft SDK and use that.
Activity
HuaFangYun commentedon Jan 22, 2024
dotnet workload install maui
marcpopMSFT commentedon Jan 23, 2024
How did you install the SDK? What's in the dotnet/sdk-manifests folder? Seems like a bad install.
soma-kurisu commentedon Jan 24, 2024
First i used snap-store's NET8 SDK package for installation, but the resulting read-only directory where it's binaries are put in prohibits further dotnet workload installations. So i went on fiddling around as documented in #18933 but in the end i wasn't able to get the maui-android workload to run with NET8. So i completely purged all dotnet artifacts particularly to beware of the dreaded package-mixups documented in the official microsoft-learn article and reinstalled it according the official docs for ubuntu 23.10 where i decided to stay on the official canonical package repo (instead of microsofts provided one for easier future upgrades).
Proofing myself everything worked as expected i newed-up a blazor projected utilizing dotnet tool's provided template. For completeness i'd like to mention since this is a new setup i also went on installing the azure CLI, but this time - lacking any other options - choosing the microsoft package repo for ubuntu jammy.
soma-kurisu commentedon Jan 24, 2024
for further details according the
mono.toolchain.current:soma-kurisu commentedon Jan 24, 2024
further details about my dotnet setup:
soma-kurisu commentedon Jan 27, 2024
@marcpopMSFT, as you requested I've listed some details about my setup. Have you any ideas what's going on here? I find it very suspicious that a
workload searchrequest won't find any maui workloads:marcpopMSFT commentedon Jan 30, 2024
The sdk-manifests folder is missing all of the maui manifests which is why the workload is unrecognized and can't be installed.
Including @rbhanda @MichaelSimons @baronfel who might know about the snap install and jammy installs to know if those are incomplete wrt maui.
soma-kurisu commentedon Jan 31, 2024
any way - @marcpopMSFT thank you for taking the time and looking at it.
still hoping @rbhanda @MichaelSimons @baronfel have more luck.
ndr0n commentedon Feb 1, 2024
Hey, i have the exact same problem :)
soma-kurisu commentedon Feb 4, 2024
@ndr0n :
(a) also on UB 23.10 ?
(b) also NET 8 installation via snap, its removal afterwards and re-installation via official canonical package repo ?
(c) registration of any other microsoft package repo ?
Lyra2108 commentedon Feb 24, 2024
I have the same issue with arch linux
PartedLine commentedon Feb 28, 2024
I had this same issue on Arch after installing dotnet-sdk 8.0.101 with pacman. I fixed this by downloading dotnet via the install scripts (https://dotnet.microsoft.com/en-us/download/dotnet/scripts) and copying the sdk-manifests from "~/.dotnet/sdk-manifests/8.0.100" to "/usr/share/dotnet/sdk-manifests/8.0.100". Afterwards you are able to install maui-android.
Hope this helps anyone that comes across this issue
soma-kurisu commentedon Feb 29, 2024
@PartedLine thx for sharing; But doing it this way puts us back in the pre-packagemanager era where you'll have to fiddle around managing all the sdk and tooling dependencies by your self. I'd say arguable for a not officially supported distro but not the support you might expect from an officially supported distro.
vpkopylov commentedon Mar 10, 2024
I have the same problem on ArchLinux. Took a look at arch dotnet-sdk package source code and as far as I can see there is no custom logic there around sdk-manifests. It just grubs the official sdk sources from dotnet/dotnet repo, builds it and copies
sdk-manifestsfolder tousr/share/dotnet.So maybe there is a problem in dotnet sdk itself?
amirvenus commentedon Apr 4, 2024
is android not supported on dotnet 8.0 arm Ubuntu?
dotnet workload searchWorkload ID Description
aspire .NET Aspire SDK (Preview)
macos .NET SDK Workload for building macOS applications.
maui-tizen .NET MAUI SDK for Tizen
maui-windows .NET MAUI SDK for Windows
wasi-experimental workloads/wasi-experimental/description
wasm-experimental workloads/wasm-experimental/description
wasm-tools .NET WebAssembly build tools
dotnet workload install androidWorkload ID android isn't supported on this platform.
LawunnKhaing commentedon May 7, 2024
I have the same with arch. Can you solve that now?
baronfel commentedon May 7, 2024
The common thread here is that all of these distributions of the .NET SDK are build using source-build. Source-Build SDKs do not have all of the same workloads as MIcrosoft-authored SDKs. You can read more about this in dotnet/source-build#3242. This is something that I think we will need to address soon.
baronfel commentedon May 14, 2024
In the meantime, if you need MAUI workloads I'd suggest using the dotnet-install scripts to install a 'local install' of the Microsoft SDK and use that.
mylobits commentedon Aug 25, 2024
ok... i was having the same issue in my Pop OS distro... so i change the ID on os-release to "ubuntu" it was pop and then run the
then after i run the dotnet workload install maui-android
and wala! :P, i know, i know... its not eleganto way... but it works for now(i swap it bat to pop, just for avoid issue with the os later):
iSeiryu commentedon Sep 4, 2025
Same here. I followed these installation steps for dotnet 9 on Ubuntu 24.04: https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu-install?tabs=dotnet9&pivots=os-linux-ubuntu-2404
> dotnet workload install maui-android Workload installation failed: Workload ID maui-android is not recognized.It'd be nice to add a note to that installation guide saying that installing it from backports will screw you up.
ibram-reda commentedon Jan 2, 2026
this solve it for me
dotnet workload update