Brief description of your issue
I'm not able to install winget 1.3.1391-preview from the CLI because it fails to detect the framework "Microsoft.UI.Xaml.2.7" while Microsoft.UI.Xaml (version 2.7.0) is properly installed.
Installing winget from the Microsoft Store is not an option since I am preparing virtualbox images with Microsoft applications for an automated testing environment.
Steps to reproduce
Script used for installing Winget:
# Install NuGet
Install-Module PowerShellGet -Force
Register-PackageSource -provider NuGet -name nugetRepository -location https://www.nuget.org/api/v2
# Install Microsoft.UI.Xaml
Install-Package Microsoft.UI.Xaml -RequiredVersion 2.7 -Force
# Install VC Libs
$vcLibsInstaller = "C:\tmp\Microsoft.VCLibs.x64.14.00.Desktop.appx"
(new-object System.Net.WebClient).DownloadFile("https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx", $vcLibsInstaller)
add-appxpackage $vcLibsInstaller
$wingetInstaller = "C:\tmp\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
(new-object System.Net.WebClient).DownloadFile("https://github.com/microsoft/winget-cli/releases/download/v1.3.1391-preview/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle", $wingetInstaller)
add-appxpackage $wingetInstaller
Expected behavior
winget 1.3.1391-preview to install.
Actual behavior
add-appxpackage : Deployment failed with HRESULT: 0x80073CF3, Package failed updates, dependency or conflict validation.
Windows cannot install package Microsoft.DesktopAppInstaller_1.18.1391.0_x64__8wekyb3d8bbwe because this package depends on a framework that could not be found. Provide the framework "Microsoft.UI.Xaml.2.7" published by "CN=Microsoft
Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 7.2109.13004.0, along with this package to install. The frameworks with name "Microsoft.UI.Xaml.2.7"
currently installed are: {}
NOTE: For additional information, look for [ActivityId] 3f600116-7bfd-0001-dfcd-603ffd7bd801 in the Event Log or use the command line Get-AppPackageLog -ActivityID 3f600116-7bfd-0001-dfcd-603ffd7bd801
At line:1 char:1
+ add-appxpackage -Path $wingetInstaller
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\tmp\winget.msixbundle:String) [Add-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
Microsoft.UI.Xaml on its side was properly installed:
PS C:\tmp> Get-Package
Name Version Source ProviderName
---- ------- ------ ------------
Microsoft.UI.Xaml 2.7.1 C:\Program Files\PackageManag... NuGet
Environment
Vagrant box based on image: gusztavvargadr/windows-10
Brief description of your issue
I'm not able to install winget 1.3.1391-preview from the CLI because it fails to detect the framework "Microsoft.UI.Xaml.2.7" while Microsoft.UI.Xaml (version 2.7.0) is properly installed.
Installing winget from the Microsoft Store is not an option since I am preparing virtualbox images with Microsoft applications for an automated testing environment.
Steps to reproduce
Script used for installing Winget:
Expected behavior
winget 1.3.1391-preview to install.
Actual behavior
Microsoft.UI.Xaml on its side was properly installed:
Environment