Skip to content

Commit 446aa75

Browse files
committed
Set TargetPlatformVersion based on target framework for improved compatibility
1 parent 1ee86f4 commit 446aa75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MultiTarget/WinUI.Extra.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
-->
1818
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
1919
<SupportedOSPlatformVersion>$(TargetPlatformMinVersion)</SupportedOSPlatformVersion>
20-
<TargetPlatformVersion>10.0.26100.0</TargetPlatformVersion>
20+
<TargetPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.26100.0</TargetPlatformVersion>
21+
<TargetPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'windows'">10.0.19041.0</TargetPlatformVersion>
2122
</PropertyGroup>
2223

2324
<!-- Workaround, improved error message when consuming from Uno projects with mismatched TFMs -->

0 commit comments

Comments
 (0)