Skip to content

Commit

Permalink
vsdownload: Workaround for inconsistent MSBuild folder casing when ex…
Browse files Browse the repository at this point in the history
…tracting packages
  • Loading branch information
huangqinjin authored and mstorsjo committed Jan 1, 2025
1 parent c9fe27d commit 20da348
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vsdownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,9 @@ def unpackWin10WDK(src, dest):

def extractPackages(selected, cache, dest):
makedirs(dest)
# The path name casing is not consistent across packages, or even within a single package.
# Manually create top-level folders before extracting packages to ensure the desired casing.
makedirs(os.path.join(dest, "MSBuild"))
for p in selected:
type = p["type"]
dir = os.path.join(cache, getPackageKey(p))
Expand Down

0 comments on commit 20da348

Please sign in to comment.