File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 3
3
[string ]$NuGetPackagesFolder = " "
4
4
)
5
5
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
8
7
$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.
9
11
if (! ($NuGetPackagesFolder -eq " " ))
10
12
{
11
13
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.*" } |
13
17
Where-Object { $_.Name -notlike " *.nupkg" } |
14
18
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].*)$" )
16
23
{
17
24
$nugetPackageToVersionTable [$Matches [1 ]] = $Matches [2 ]
18
25
Write-Host " Found $ ( $Matches [1 ]) - $ ( $Matches [2 ]) "
You can’t perform that action at this time.
0 commit comments