Skip to content

Commit a77ede5

Browse files
committed
Bump Win2D dependencies
1 parent 03feb18 commit a77ede5

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

components/ImageCropper/src/Dependencies.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<Project>
1212
<!-- WinUI 2 / UWP -->
1313
<ItemGroup Condition="'$(IsUwp)' == 'true'">
14-
<PackageReference Include="Win2D.uwp" Version="1.28.0"/>
14+
<PackageReference Include="Win2D.uwp" Version="1.28.1"/>
1515
</ItemGroup>
1616

1717
<!-- WinUI 2 / Uno -->
@@ -21,7 +21,7 @@
2121

2222
<!-- WinUI 3 / WinAppSdk -->
2323
<ItemGroup Condition="'$(IsWinAppSdk)' == 'true'">
24-
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.3.0"/>
24+
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.3.1"/>
2525
</ItemGroup>
2626

2727
<!-- WinUI 3 / Uno -->
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
WinUI 2 under UWP uses TargetFramework uap10.0.*
2+
WinUI 2 under UWP uses TargetFramework uap10.0.* or net8.0-windows10.*
33
WinUI 3 under WinAppSdk uses TargetFramework net6.0-windows10.*
44
However, under Uno-powered platforms, both WinUI 2 and 3 can share the same TargetFramework.
55
@@ -11,12 +11,15 @@
1111
<Project>
1212
<!-- WinUI 2 / UWP -->
1313
<ItemGroup Condition="'$(IsUwp)' == 'true'">
14-
<PackageReference Include="Win2D.uwp" Version="1.28.0" />
15-
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.6.0" />
14+
<PackageReference Include="Win2D.uwp" Version="1.28.1" />
15+
16+
<!-- Only include this polyfill package when not targeting .NET 8 or above -->
17+
<PackageReference Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))"
18+
Include="System.Threading.Tasks.Extensions" Version="4.6.0" />
1619
</ItemGroup>
1720

1821
<!-- WinUI 3 / WinAppSdk -->
1922
<ItemGroup Condition="'$(IsWinAppSdk)' == 'true'">
20-
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.3.0" />
23+
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.3.1" />
2124
</ItemGroup>
2225
</Project>

0 commit comments

Comments
 (0)