buildDotnet module: work around broken --runtime in dotnet pack
This commit is contained in:
@@ -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"} \
|
||||
|
||||
Reference in New Issue
Block a user