Syncfusion.Grid.WinUI and AOT crashes

Hi there, is your WinUI components AOT compatible?


  1. create a WinUI3 packed project
  2. add Syncfusion.Grid.WinUI nuget
  3. insert this line to App constructor (of course with my valid license key) Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR LICENSE KEY");
  4. set this in project file  <PublishAot>True</PublishAot>
  5. I get this error when I try to start/debug my app
  6. CrashedGridAot.png



I uploaded my VS2022 project. If you change  <PublishAot> to false, the app will work, but when it is true, the app crashes.

Thanks,

Karoly


Attachment: WinUI3Aot_2e455a36.zip

2 Replies 1 reply marked as answer

MA Manikanda Akash Munisamy Syncfusion Team November 26, 2024 09:18 AM UTC

Hi Karoly,

Currently, our Syncfusion WinUI controls do not support AOT (Ahead-of-Time) compilation. We are actively investigating the feasibility of adding AOT support, but we are encountering some issues during the process. We were checking with Microsoft regarding the issues. You can also find the link below.

Link: Issue

Once the issues are resolved and our controls are fully compatible with AOT, we will inform you further and include it in one of our upcoming releases. We appreciate your patience in the meantime.

Regards,
Manikanda Akash

Marked as answer

KA Karoly November 26, 2024 09:35 AM UTC

Hi  Manikanda, thanks for quick reply.

Ok, I see, I will wait for your feedback.

One thing I would mention is if I don't add your Grid Nuget and call RegisterLicense method I can compile/publish my WinUI3 app with AOT without any problem. 

Thanks,

Karoly





Loader.
Up arrow icon