From fe10ae4b0f5de47b39d040fe4f4ca528cf512fe4 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Wed, 25 Jun 2025 10:09:04 -0300 Subject: [PATCH] buildDotnet module: work around broken --runtime in dotnet pack --- .../dotnet/build-dotnet-module/hook/dotnet-hook.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/build-support/dotnet/build-dotnet-module/hook/dotnet-hook.sh b/pkgs/build-support/dotnet/build-dotnet-module/hook/dotnet-hook.sh index 7da8ca6d33f3..da277091feb3 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/hook/dotnet-hook.sh +++ b/pkgs/build-support/dotnet/build-dotnet-module/hook/dotnet-hook.sh @@ -384,6 +384,9 @@ dotnetInstallPhase() { local runtimeIdFlags=() if [[ $projectFile == *.csproj || -n ${dotnetSelfContainedBuild-} ]]; then runtimeIdFlags+=("--runtime" "$runtimeId") + # set RuntimeIdentifier because --runtime is broken: + # https://github.com/dotnet/sdk/issues/13983 + runtimeIdFlags+=(-p:RuntimeIdentifier="$runtimeId") fi dotnet pack ${1+"$projectFile"} \