As a result, our RNW dependency script (which relies on winget for dependency installation) fails to correctly install dependencies.
We should update our dependency script to check if the version of winget installed on the computer is the broken version, and if so, we should run the following command to install a working version:
Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile winget.msixbundle
Add-AppPackage -ForceApplicationShutdown .\winget.msixbundle
del .\winget.msixbundle
There is a known issue on the
winget
repository that the version ofwinget
installed with new installations of Windows 11 is a broken version. See https://github.com/microsoft/winget-cli/issues/3832#issuecomment-1872387214.As a result, our RNW dependency script (which relies on
winget
for dependency installation) fails to correctly install dependencies.We should update our dependency script to check if the version of
winget
installed on the computer is the broken version, and if so, we should run the following command to install a working version:Then the script can proceed as normal.