Skip to content

Only first RuntimeIdentifier used in dotnet publish #7428

Description

@rgroenewoudt

Android application type

Android for .NET (net6.0-android, etc.)

Affected platform version

VS2022 17.3.4

Description

I would like to set the runtime identifiers (x86/arm) when using the dotnet publish CLI.

dotnet publish -c Release -p:RuntimeIdentifiers="android-x86;android-arm" -p:AndroidPackageFormat=apk -o test
However this doesn't seem to work, only the first runtime identifier is used. The APK only contains libraries for x86 and not arm. The same problem happens when an a different runtime identifier is used such as android-arm64.

Steps to Reproduce

  • Create a new Android .NET 6 app
  • Execute dotnet publish -c Release -p:RuntimeIdentifiers="android-x86;android-arm" -p:AndroidPackageFormat=apk -o test
  • APK only contains libraries for first runtime identifier and not the second.

Did you find any workaround?

No

Relevant log output

No response

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.possibly-staleIssues that are potentially no longer relevant.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions