buildDotnetModule: respect self-contained setting in restore

This commit is contained in:
David McFarland 2024-10-27 13:41:48 -03:00
parent 4219a94158
commit aa0289eda4

View File

@ -24,6 +24,12 @@ dotnetConfigureHook() {
local -r parallelFlag="--disable-parallel"
fi
if [[ -n ${dotnetSelfContainedBuild-} ]]; then
dotnetRestoreFlagsArray+=("-p:SelfContained=true")
else
dotnetRestoreFlagsArray+=("-p:SelfContained=false")
fi
dotnetRestore() {
local -r projectFile="${1-}"
for runtimeId in "${dotnetRuntimeIdsArray[@]}"; do