LiveCharts2
LiveCharts2 copied to clipboard
Livecharts crash WindowsSdkPackageVersion 10.0.22621.38+
Describe the bug When loading the Livecharts in XAML in an App with WindowsSdkPackageVersion 10.0.22621.38 or higher it crashes the App and Debugger. WindowsSdkPackageVersion 10.0.22621.34 and lower work as expected
I encountered this when I wanted to update CommunityToolkit.Mvvm from 8.2.2 to 8.3.0, I had to increase WindowsSdkPackageVersion (Microsoft.Windows.CsWinRT 2.1.1 also requires a higher version!)
CommunityToolkit.Mvvm 8.3.0 features many changes like .net8 and other things were made optional. https://devblogs.microsoft.com/dotnet/announcing-the-dotnet-community-toolkit-830/
To Reproduce Steps to reproduce the behavior:
- Set <WindowsSdkPackageVersion>10.0.22621.38</WindowsSdkPackageVersion> in Solution
- Make a XAML page with a livechart
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.WinUI"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid>
<lvc:CartesianChart />
</Grid>
</Page>
- Run the app / open the Page
- See App and debugger crash, it didn't even save an unhandled exception
Desktop (please complete the following information):
- OS: Windows 11 Build 22631
- Build 22631
Additional context LiveChartsCore.SkiaSharpView.WinUI 2.0.0-rc2.1 net8.0-windows10.0.22621.0 Microsoft.WindowsAppSDK 1.5.240802000