Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Disable SDK Targeting Pack Cache
  • Loading branch information
safern committed Nov 13, 2021
commit 579de135c9f64869d6d05f29bd4c6569ed492db0
4 changes: 4 additions & 0 deletions eng/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ foreach ($argument in $PSBoundParameters.Keys)

$failedBuilds = @()

# Disable targeting pack caching as we reference a partially constructed targeting pack and update it later.
# The later changes are ignored when using the cache.
$env:DOTNETSDK_ALLOW_TARGETING_PACK_CACHING=0

if ($os -eq "Browser") {
# override default arch for Browser, we only support wasm
$arch = "wasm"
Expand Down
4 changes: 4 additions & 0 deletions eng/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,10 @@ fi

initDistroRid $os $arch $crossBuild $portableBuild

# Disable targeting pack caching as we reference a partially constructed targeting pack and update it later.
# The later changes are ignored when using the cache.
export DOTNETSDK_ALLOW_TARGETING_PACK_CACHING=0

# URL-encode space (%20) to avoid quoting issues until the msbuild call in /eng/common/tools.sh.
# In *proj files (XML docs), URL-encoded string are rendered in their decoded form.
cmakeargs="${cmakeargs// /%20}"
Expand Down