Wix Installer fail to install after upgraded to VS2022 from VS2015 with error indicate Microsoft.NET.Native.Framework.1.3 dependency conflict
I am trying to update to use VS2022 IDE from VS2015.
I encountered following error trying to install the installer built with VS2022 with Release Configuration and x64 Platform. And this error is not recoverable even uninstalled VS2022 and VS2015 and reinstall VS2015
Originally the installer built with VS2015 works fine until I have build the project with VS2022. Then neither build works.
package depends on a framework that could not be found. Provide the framework "Microsoft.NET.Native.Framework.1.3" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 1.3.24211.0, along with this package to install. The frameworks with name "Microsoft.NET.Native.Framework.1.3" currently installed are: {Microsoft.NET.Native.Framework.1.3_1.3.24201.0_x64__8wekyb3d8bbwe}
The project is targeting .Net Framework 4.6.1 and UWP Windows 10 anniversary edition (10.0; build 14393) with minimum version Windows 10 (10.0; build 10240). These cannot be updated due to my use cases.
The UWP dependency (https://github.com/microsoft/app-metadata/tree/master/test/assets/UwpApp_1/Dependencies/x64) is supplied in the Wix project
Here is the setup for my environment:
Wix toolset v3.11
MSBuild 14 version: 14.0.25420.1
MSBuild 17 version: 17.9.8.16306
VS2015 installed following packages:
For VS2022, I have tested to install only the default Windows SDK (10.0.22621.0), and this could cause the above issue