Closed dadavadd closed 33 minutes ago
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas See info in area-owners.md if you want to be subscribed.
Neither WinForms or Blazor are compatible with full trimming and native AOT currently. It is expected that it is not going to work well. You can follow related issues in WinForms and ASP.NET repos: https://github.com/dotnet/winforms/issues/4649, https://github.com/dotnet/aspnetcore/issues/49409, https://github.com/dotnet/aspnetcore/issues/51598
xml files that I used in my project: https://pastebin.com/raw/vhW37bYT
Manual authoring of RdXml files is not supported https://github.com/dotnet/runtime/blob/main/src/coreclr/nativeaot/docs/rd-xml-format.md . It results into poorly performing apps with hard to diagnose functionality issues as you have found. I am sorry we are not going to help you with authoring of RdXml files to make things "work". It is not a time well spent.
When using Blazor Hybrid with Windows Forms and NativeAOT compilation, event bindings (@onclick etc.) stop working although the UI renders correctly. The binds work correctly without NativeAOT.
xml files that I used in my project: https://pastebin.com/raw/vhW37bYT NativeAOT compiling logs: logs.txt
MainForm.cs:
Main.razor: