Skip to content

Missing arm and x86 runtimes result in NETSDK1181. #12172

Description

@StephenCleary

Android framework version

net11.0-android (Preview)

Affected platform version

VS 18.8.0, .NET SDK 11.0.100-preview.6.26359.118, android workload 37.0.0-preview.6.59

Description

I have this specified in my csproj (for Release):

<RuntimeIdentifiers>android-arm;android-arm64;android-x86;android-x64</RuntimeIdentifiers>

With this set, the build fails with:

C:\Program Files\dotnet\sdk\11.0.100-preview.6.26359.118\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(121,5): error NETSDK1181: Error getting pack version: Pack 'Microsoft.Android.Runtime.CoreCLR.37.android-arm' was not present in workload manifests.
C:\Program Files\dotnet\sdk\11.0.100-preview.6.26359.118\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(121,5): error NETSDK1181: Error getting pack version: Pack 'Microsoft.Android.Runtime.CoreCLR.37.android-x86' was not present in workload manifests.

Restore failed with 2 error(s) in 1.5s

Previous versions of the SDK did not target these runtimes by default, but did work if they were targeted explicitly.

Steps to Reproduce

  1. dotnet new android
  2. Add <RuntimeIdentifiers>android-arm;android-arm64;android-x86;android-x64</RuntimeIdentifiers> to the csproj.
  3. dotnet build

Or clone and build a Release configuration from my actual project: https://github.com/StephenClearyApps/PewBible/tree/net11

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: App+Library BuildIssues when building Library projects or Application projects.needs-triageIssues that need to be assigned.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions