From 8e39ff6a824110732bac8f8e48775bd386cd8c47 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Fri, 16 Dec 2022 15:19:18 +0100 Subject: [PATCH] fix(winget): import Appx module --- packages/winget/build.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/winget/build.ps1 b/packages/winget/build.ps1 index 093e7c4e..1072bfca 100644 --- a/packages/winget/build.ps1 +++ b/packages/winget/build.ps1 @@ -62,6 +62,9 @@ if (-not $Token) { return } # Install the latest wingetcreate exe +# Need to do things this way, see https://github.com/PowerShell/PowerShell/issues/13138 +Import-Module Appx -UseWindowsPowerShell + # Download and install C++ Runtime framework package. $vcLibsBundleFile = "$env:TEMP\Microsoft.VCLibs.Desktop.appx" Invoke-WebRequest https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile $vcLibsBundleFile