Installing MAUI workloads on Linux fails on read-only filesystems such as Flatpak #23219
Labels
area-setup
Installation, setup, requirements, maui-check, workloads, platform support
t/bug
Something isn't working
Description
For Linux there is documentation to install .NET workloads necessary for MAUI, possibly by using
sudo
to elevate privileges. This approach however cannot work in a Flatpak, sandboxed or otherwise read-only filesystem context even with elevated privileges.From what I gather from other issues work is currently underway to get better support for Linux to build MAUI projects for Android and iOS, so I thought I'd report this sooner rather than later as perhaps this as this might fly under the radar otherwise.
Steps to Reproduce
flatpak install VSCodium
.flatpak install org.freedesktop.Sdk.Extension.dotnet8
.DOTNET_ROOT
, i.e.export DOTNET_ROOT=/usr/lib/sdk/dotnet8
, in the CLI.dotnet workload restore
in a MAUI project or otherwise try installing a workload.The result:
Link to public reproduction project repository
No response
Version with bug
8.0.60 SR6
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Other (Tizen, Linux, etc. not supported by Microsoft directly)
Affected platform versions
No response
Did you find any workaround?
No, ideally .NET workloads should be installed somewhere in a persistent folder, preferably user-specific.
Even without read-only filesystems requiring elevated privileges for these workloads is poor practice because it effectively makes the .NET CLI a 'system package manager' in a way by creating files that cannot be tracked by the system's package manager.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: