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

4 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






KA Karoly July 27, 2025 11:54 AM UTC

Hi!

Any news about this?

I still have this issue and I'm wondering I could ever use Syncfusion components with my WinUI3 AOT apps or I should find any other components instead?

Th



SN Sudharsan Narayanan Syncfusion Team replied to Karoly July 28, 2025 03:37 PM UTC

Hi Karoly,

Currently, we are following the GitHub team for an update on the reported issue that we are facing in our control. Once we got any update and tested our control. We will let you know the details.
 
Regards,
Sudharsan


Loader.
Up arrow icon