When installing Winget v1.8.1911 with Add-AppxProvisionedPackage the Microsoft.UI.XAML requiremend is not flagged.
Brief description of your issue
When trying to install Winget with Add-Appxpackage it shows that Microsoft.UI.XAML is required but if you use Add-AppxProvisionedPackage it installs without telling you that. So when using Add-AppxProvisionedPackage winget is only functional if you install Microsoft.UI.XAML bevorehand.
Steps to reproduce
Install Winget with Add-AppxProvisionedPackage on a fresh installed system. (I used Windows 11 23h2)
Expected behavior
Add-AppxProvisionedPackage checks for the presence of Microsoft.UI.XAML
Actual behavior
Add-AppxProvisionedPackage does not check for Microsoft.UI.XAML and Winget is not executable.
Environment
Windows Package Manager v1.8.1911
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22631.3880
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.0
This probably isn't the right repository to report the issue. I'll keep it here while I investigate marked as "Area-External".