Lottie-Windows
Lottie-Windows copied to clipboard
Exception in .net8
Animation work well in .net 7 project, then update it to .net8, there is an c++ exception and crash ~~
@book1625 could you provide more information? Exception message, generated code or json file itself? Thank you
Here is a demo project I made, however, it has a little defferent situation from my product. App1.zip
My product will got an exception as below ...
Exception thrown at 0x00007FF827015B0C in Visualizer.exe: Microsoft C++ exception: winrt::hresult_error at memory location 0x000000A26158B5B0.
And the demo project just show nothing without exception. If you change the framework to .net 7, you can see the animation playing.
CommunityToolkit.WinUI.Lottie 8.0.280224
still not working on <TargetFramework>net8.0-windows10.0.19041</TargetFramework>
@aborziak-ms Thanks!
CommunityToolkit.WinUI.Lottie 8.0.280225 still not working on <TargetFramework>net8.0-windows10.0.19041</TargetFramework>
@aborziak-ms Thanks!
My product still target on .net7 and win10.0.19041 for lottie work, however, .net7 is stop support now. Is there any way for lottie work in .net8 ??
The Microsoft.Graphics.Win2D
's version need greate 1.2.0!
<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240607001" PrivateAssets="none" />
<!-- Lottie动画已正常,Microsoft.Graphics.Win2D需1.2.0以上版本,Microsoft.Maui.Essentials已间接引用 -->
<PackageReference Include="CommunityToolkit.WinUI.Lottie" Version="8.0.280225" />
</ItemGroup>
It' work like a charm !! Thx ~~