Skip to content

How to resolve build error 'This version of the Windows App SDK requires Microsoft.Windows.SDK.NET.Ref 10.0.19041.38 or later.' when upgrading to Windows App SDK 1.6? #5132

Discussion options

You must be logged in to vote

Root cause

The issue arises because the Windows App SDK and the Windows SDK projection assemblies need to be updated together to maintain compatibility. However, they are released independently, leading to potential runtime incompatibility errors.

Solution

Add the following to your project file to specify the required Windows SDK package version:

<PropertyGroup>
  <WindowsSdkPackageVersion>10.0.19041.38</WindowsSdkPackageVersion>
</PropertyGroup>

This change will be unnecessary once the newest .NET SDK is released, which will automatically set the default TFM and Windows SDK package version.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LegendaryBlair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant