Forum Discussion

surensaluka's avatar
surensaluka
Copper Contributor
Feb 08, 2022
Solved

UWP SDK version issue (Your project does not reference "UAP,Version)

In UWP apps, does anyone know how to get rid of the following errors permanently? This happens when I switch between GIT branches where the source code is targeted to different Windows SDK versions. ...
  • RupeshKokal's avatar
    RupeshKokal
    Jul 15, 2022

    Check the path of the UAP version in the project. It would be something like:
    C:\Program Files (x86)\Windows Kits\10\References\10.0.19041.0\Windows.AI.MachineLearning.MachineLearningContract\3.0.0.0

     

    The version highlighted 19041 is related to the SDK. You can download it.

     

    Close all visual studio applications. Delete the Bin and Obj folders from all the projects of your solution. 

     

    Install that downloaded SDK.

     

    Post install open the Visual Studio project. Restore Nuget packages and Build the solution and see whether the issue is resolved.

Resources