Skip to content

Commit 9cd428b

Browse files
Scottj1smanodasanW
andauthored
Include BuildTools, BuildTools.MSIX, and WebView2 packages (#499)
* Include BuildTools, BuildTools.MSIX, and WebView2 packages * Update UpdateVersions.ps1 Co-authored-by: Manodasan Wignarajah <[email protected]> * Update UpdateVersions.ps1 Co-authored-by: Manodasan Wignarajah <[email protected]> --------- Co-authored-by: Manodasan Wignarajah <[email protected]>
1 parent 430af55 commit 9cd428b

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

UpdateVersions.ps1

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,23 @@ Param(
33
[string]$NuGetPackagesFolder = ""
44
)
55

6-
# If the nuget packages folder is specified containing the latest versions,
7-
# go through them to get the versions of the component packages.
6+
# First, add the metapackage
87
$nugetPackageToVersionTable = @{"Microsoft.WindowsAppSDK" = $WinAppSDKVersion}
8+
9+
# Next, if the nuget packages folder is specified containing the latest versions,
10+
# go through them to get the versions of all dependency packages.
911
if (!($NuGetPackagesFolder -eq ""))
1012
{
1113
Get-ChildItem $NuGetPackagesFolder |
12-
Where-Object { $_.Name -like "Microsoft.WindowsAppSDK*" } |
14+
Where-Object { $_.Name -like "Microsoft.WindowsAppSDK.*" -or
15+
$_.Name -like "Microsoft.Windows.SDK.BuildTools.*" -or
16+
$_.Name -like "Microsoft.Web.WebView2.*" } |
1317
Where-Object { $_.Name -notlike "*.nupkg" } |
1418
ForEach-Object {
15-
if ($_.Name -match "^(Microsoft\.WindowsAppSDK\.[a-zA-Z]+)\.([0-9].*)$")
19+
if ($_.Name -match "^(Microsoft\.WindowsAppSDK\.[a-zA-Z]+)\.([0-9].*)$" -or
20+
$_.Name -match "^(Microsoft\.Windows\.SDK\.BuildTools\.MSIX)\.([0-9].*)$" -or
21+
$_.Name -match "^(Microsoft\.Windows\.SDK\.BuildTools)\.([0-9].*)$" -or
22+
$_.Name -match "^(Microsoft\.Web\.WebView2)\.([0-9].*)$")
1623
{
1724
$nugetPackageToVersionTable[$Matches[1]] = $Matches[2]
1825
Write-Host "Found $($Matches[1]) - $($Matches[2])"

0 commit comments

Comments
 (0)