FluentAvalonia
FluentAvalonia copied to clipboard
.NET 8 support, AOT and json source generator fixes
- Use json source generator to avoid trimming/AOT issue as well as the incompatibility on .NET 8
- Bump AvaloniaEdit to 11.0.5 to fix AOT issue
Fixes #481 Fixes #492
@amwx Could you please take a look at this change? I know you have been busy with your job, but this is a trivial fix to resolve the issue with .NET 8. .NET 8 GA is coming today, and major people will start to encounter this issue immediately.
This would be very useful to have in case it solves issues in .NET 8 and NativeAOT within the NavigationView that I encountered.
Unfortunately, the workaround <JsonSerializerIsReflectionEnabledByDefault>true</JsonSerializerIsReflectionEnabledByDefault>
in the project file only let it run without an Exception, but now the NavigationView pages don't get their content instead, I think in my case due to the unresolved issue with the FluentAvalonia.UI.FALocalizationHelper.FALocalizationHelper
constructor as this is what is thrown at startup without the workaround.
If I run my project without AOT, everything works like normal. So this is what I'm doing for now. :)
Done.