Dmitry Nefedov
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
Scripts/Dependencies.ps1
|
|
@ -39,6 +39,6 @@ Invoke-RestMethod @Parameters |
|
|
|
# Extract Microsoft.Windows.SDK.NET.dll & WinRT.Runtime.dll from archive |
|
|
|
Add-Type -Assembly System.IO.Compression.FileSystem |
|
|
|
$ZIP = [IO.Compression.ZipFile]::OpenRead("Scripts\microsoft.windows.sdk.net.ref.zip") |
|
|
|
$Entries = $ZIP.Entries | Where-Object -FilterScript {($_.FullName -eq "lib/net6.0/Microsoft.Windows.SDK.NET.dll") -or ($_.FullName -eq "lib/net6.0/WinRT.Runtime.dll")} |
|
|
|
$Entries = $ZIP.Entries | Where-Object -FilterScript {($_.FullName -eq "lib/net8.0/Microsoft.Windows.SDK.NET.dll") -or ($_.FullName -eq "lib/net8.0/WinRT.Runtime.dll")} |
|
|
|
$Entries | ForEach-Object -Process {[IO.Compression.ZipFileExtensions]::ExtractToFile($_, "Scripts\$($_.Name)", $true)} |
|
|
|
$ZIP.Dispose() |
|
|
|