diff --git a/end-to-end/main_test.go b/end-to-end/main_test.go index 81ccfb941..8b629033e 100644 --- a/end-to-end/main_test.go +++ b/end-to-end/main_test.go @@ -139,7 +139,7 @@ func buildProject(ctx context.Context) (debPath string, err error) { } jobs := map[string]*exec.Cmd{ - "Build Windows Agent": powershellf(ctx, `..\tools\build\build-appx.ps1`), + "Build Windows Agent": powershellf(ctx, `..\tools\build\build-appx.ps1 -Mode end_to_end_tests`), "Build Wsl Pro Service": powershellf(ctx, `..\tools\build\build-deb.ps1 -OutputDir %q`, debPath), } diff --git a/tools/build/build-appx.ps1 b/tools/build/build-appx.ps1 index 11dd2bebb..b3cb3a62f 100644 --- a/tools/build/build-appx.ps1 +++ b/tools/build/build-appx.ps1 @@ -77,7 +77,10 @@ function Install-Appx { | Sort-Object LastWriteTime ` | Select-Object -last 1 ` ) - + + If ($mode -ne 'production') { + Add-AppxPackage "${env:ProgramFiles(x86)}\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs.Desktop\14.0\Appx\Debug\x64\Microsoft.VCLibs.x64.Debug.14.00.Desktop.appx" + } & "${artifacts}\Install.ps1" -Force if ( "${LastExitCode}" -ne "0" ) {