-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed as not planned
Closed as not planned
Copy link
Labels
Area-Workloadsneeds team triageRequires a full team discussionRequires a full team discussionuntriagedRequest triage from a team memberRequest triage from a team member
Description
Describe the bug
I'm not able to restore/ build MAUI project targeting net8.0-android on linux. The message says I need to install net8.0-android even though it is already installed.

To Reproduce
The repro is located here and it is using the nix package manager to setup developer environment with dotnet and userlocal files as per #18823.
git clone https://github.com/anpin/maui-on-nix
cd maui-on-nix
nix develop
dotnet workload restore
dotnet restore
Exceptions (if any)
"/home/a/projects/maui-on-nix/maui-on-nix.sln" (Restore target) (1) ->
"/home/a/projects/maui-on-nix/src/MauiOnNix.csproj" (_GenerateProjectRestoreGraph target) (2:7) ->
"/home/a/projects/maui-on-nix/src/MauiOnNix.csproj" (_GenerateProjectRestoreGraphPerFramework target) (2:9) ->
(_CheckForMissingWorkload target) ->
/nix/store/gm3ak3vgrx8qik40cnw28056i38hajsb-dotnet-sdk-8.0.100/sdk/8.0.100/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 [/home/a/projects/maui-on-nix/src/MauiOnNix.csproj::TargetFramework=net8.0-android]
/nix/store/gm3ak3vgrx8qik40cnw28056i38hajsb-dotnet-sdk-8.0.100/sdk/8.0.100/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 [/home/a/projects/maui-on-nix/src/MauiOnNix.csproj::TargetFramework=net8.0-android]
Further technical details
.NET SDK:
Version: 8.0.100
Commit: 57efcf1350
Workload version: 8.0.100-manifests.d75fd3e4
Runtime Environment:
OS Name: nixos
OS Version: 24.05
OS Platform: Linux
RID: linux-x64
Base Path: /nix/store/gm3ak3vgrx8qik40cnw28056i38hajsb-dotnet-sdk-8.0.100/sdk/8.0.100/
.NET workloads installed:
Workload version: 8.0.100-manifests.d75fd3e4
[maui-android]
Installation Source: SDK 8.0.100
Manifest Version: 8.0.3/8.0.100
Manifest Path: /home/a/.dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.maui/8.0.3/WorkloadManifest.json
Install Type: FileBased
[maui-tizen]
Installation Source: SDK 8.0.100
Manifest Version: 8.0.3/8.0.100
Manifest Path: /home/a/.dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.maui/8.0.3/WorkloadManifest.json
Install Type: FileBased
[wasi-experimental]
Installation Source: SDK 8.0.100
Manifest Version: 8.0.0/8.0.100
Manifest Path: /nix/store/1i031mawznylm1plswjxfdyhcnxwgin2-dotnet-core-combined/sdk-manifests/8.0.100/microsoft.net.workload.mono.toolchain.current/8.0.0/WorkloadManifest.json
Install Type: FileBased
Host:
Version: 8.0.0
Architecture: x64
Commit: 5535e31a71
.NET SDKs installed:
8.0.100 [/nix/store/1i031mawznylm1plswjxfdyhcnxwgin2-dotnet-core-combined/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.0 [/nix/store/1i031mawznylm1plswjxfdyhcnxwgin2-dotnet-core-combined/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.0 [/nix/store/1i031mawznylm1plswjxfdyhcnxwgin2-dotnet-core-combined/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
DOTNET_ROOT [/nix/store/1i031mawznylm1plswjxfdyhcnxwgin2-dotnet-core-combined]
global.json file:
Not found
qhga, Fiontan and EmilAlipiev
Metadata
Metadata
Assignees
Labels
Area-Workloadsneeds team triageRequires a full team discussionRequires a full team discussionuntriagedRequest triage from a team memberRequest triage from a team member