TheJoeFin / Caffeinated

☕️ Prevent your Windows PC from sleeping. Port of Caffeine for OS X. Upgraded with modern Windows 10 APIs.
MIT License
35 stars 4 forks source link

Publish it as AOT? #27

Open nikriaz opened 8 months ago

nikriaz commented 8 months ago

Hi! I found your comment on the AOT discussion page and came here to see your advancements in publishing trimmed WinForms app.

Unfortunately, I was unable to make your repo working right away. Debug cannot start, immediately throw an exception somewhere in settings. Published app does not start, just nothing happen. Does it actually work? Were you able to publish it as AOT?

My app has similar setup with tray icon and just two child forms, "settings" and "about", right as yours. and I nearly gave up with AOT WinForms, despite of Net 8 promises.

TheJoeFin commented 8 months ago

I have not been able to get AOT or Trimming working due to the dependency on WinForms. I have been looking at other ways to remove that dependency, but have not found a working solution yet.

nikriaz commented 8 months ago

Ah, okay. But may I ask what is your MSIX then and what is its size?