Skip to content

Commit c857bb1

Browse files
committed
Use stable Microsoft.UI.Xaml on UWP, prerelease on modern .NET
1 parent 523a9bd commit c857bb1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

MultiTarget/PackageReferences/Uwp/Microsoft.UI.Xaml.props

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
<Project>
22
<!-- Condition must be on a <When> statement in its own file for this to work in Visual Studio. https://stackoverflow.com/a/16557059 -->
33
<Choose>
4-
<When Condition="'$(HasWinUI)' == 'true'" >
4+
<When Condition="'$(HasWinUI)' == 'true' AND '$(MultiTargetPlatformIdentifier)' == 'uap'" >
55
<ItemGroup>
6+
<PackageReference Include="Microsoft.UI.Xaml" Version="2.8.6" />
7+
</ItemGroup>
8+
</When>
9+
<When Condition="'$(HasWinUI)' == 'true' AND '$(MultiTargetPlatformIdentifier)' == 'windows'" >
10+
<ItemGroup>
11+
<!-- This preview version breaks uap builds by referencing Microsoft.VCLibs.Desktop when it shouldn't -->
612
<PackageReference Include="Microsoft.UI.Xaml" Version="2.8.7-prerelease.241119001" />
713
</ItemGroup>
814
</When>

0 commit comments

Comments
 (0)