aspire icon indicating copy to clipboard operation
aspire copied to clipboard

Set RuntimeIdentifier when building dotnet containers

Open eerhardt opened this issue 2 months ago • 1 comments

Description

Set both RuntimeIdentifier/ContainerRuntimeIdentifier or RuntimeIdentifiers/ContainerRuntimeIdentifiers when building dotnet containers. This way the application is published correctly - for example for native AOT.

eerhardt avatar Nov 12 '25 19:11 eerhardt

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 12936

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 12936"

github-actions[bot] avatar Nov 12 '25 19:11 github-actions[bot]