buildDotnet module: work around broken --runtime in dotnet pack

This commit is contained in:
David McFarland
2025-06-25 10:09:04 -03:00
parent 928293691a
commit fe10ae4b0f
@@ -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"} \