Skip to content

Commit

Permalink
Use stable Microsoft.UI.Xaml on UWP, prerelease on modern .NET
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Dec 18, 2024
1 parent 523a9bd commit c857bb1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion MultiTarget/PackageReferences/Uwp/Microsoft.UI.Xaml.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<Project>
<!-- Condition must be on a <When> statement in its own file for this to work in Visual Studio. https://stackoverflow.com/a/16557059 -->
<Choose>
<When Condition="'$(HasWinUI)' == 'true'" >
<When Condition="'$(HasWinUI)' == 'true' AND '$(MultiTargetPlatformIdentifier)' == 'uap'" >
<ItemGroup>
<PackageReference Include="Microsoft.UI.Xaml" Version="2.8.6" />
</ItemGroup>
</When>
<When Condition="'$(HasWinUI)' == 'true' AND '$(MultiTargetPlatformIdentifier)' == 'windows'" >
<ItemGroup>
<!-- This preview version breaks uap builds by referencing Microsoft.VCLibs.Desktop when it shouldn't -->
<PackageReference Include="Microsoft.UI.Xaml" Version="2.8.7-prerelease.241119001" />
</ItemGroup>
</When>
Expand Down

0 comments on commit c857bb1

Please sign in to comment.