error APPX3217: SDK folder containing 'UAP.props' for 'UAP 10.0.17763.0' cannot be located.

Hong 1,211 Reputation points
2023-06-05T02:36:59.5933333+00:00

Building a UWP app with VS 2022 fails with the following error:

C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VisualStudio\v17.0\AppxPackage\Microsoft.AppXPackage.Targets(1131,5): error APPX3217: SDK folder containing 'UAP.props' for 'UAP 10.0.17763.0' cannot be located. See http://go.microsoft.com/fwlink/?LinkID=798187 for more information.

When I try to install Windows 10 SDK, version 1809 (10.0.17763.0), I get the following error:

User's image

Could anyone offer a tip on how to remedy this?

Universal Windows Platform (UWP)
{count} votes