安装Winget
下载
下载来下面的文件到同一个目录(Path)下:
https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx
https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.7.1
https://github.com/microsoft/winget-cli/releases/download/v1.2.10271/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
安装
打开 Windows PowerShell 执行:
# 安装 VC++ v14 依赖 (官网:https://docs.microsoft.com/en-gb/troubleshoot/developer/visualstudio/cpp/libraries/c-runtime-packages-desktop-bridge#how-to-install-and-update-desktop-framework-packages)
cd <上面的Path>
Add-AppxPackage Microsoft.VCLibs.x64.14.00.Desktop.appx
# 安装 Microsoft.UI.Xaml 依赖(官网:https://www.nuget.org/packages/Microsoft.UI.Xaml/)
使用7-zip软件解压:microsoft.ui.xaml.2.7.1.nupkg
cd microsoft.ui.xaml.2.7.1\tools\AppX\x64\Release
Add-AppxPackage microsoft.ui.xaml.2.7.appx
# 安装 winget (官网:https://github.com/microsoft/winget-cli/releases)
cd <上面的Path>
Add-AppPackage .\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
找包
https://winstall.app/