4 ms·
If the dependencies are written with AOT in mind, otherwise plenty of errors will show up. Also it isn't that easy if any of GUI frameworks from Microsoft are
by pjmlp 2y ago
If the dependencies are written with AOT in mind, otherwise plenty of errors will show up.
Also it isn't that easy if any of GUI frameworks from Microsoft are being used.
Ah, and if using WinUI, one even has the additional requirement that only UI elements implemented with partial classes can be AOT compiled due to WinUI magic code.
- metaltyphoon 2y ago> If the dependencies There needs to be more context here. I think the BCL is fully annotated already. Many of MS libraries are too including gRPC.
- pjmlp 2y agoExcept most companies are using much more than just BCL. Your gRPC example is also quite interesting, I am yet to use it in anger, and never seen it being used at any of our .NET customers. Meanwhile as mentioned, GUI frameworks aren't supported, WinUI requires partial classes and only kind of works, ASP.NET only if using minimal APIs, EF partially, and so on. So it isn't really telling the whole story that "dotnet publish /p:PublishAot=true" works regardless of the .NET codebase being compiled.
- Rohansi 2y agoI don't know why anyone even uses the GUI frameworks from Microsoft these days. WinForms is only good if you need to throw something together quick. Everything else should be Avalonia (https://avaloniaui.net/ https://avaloniaui.net/). Cross platform and does support AOT.
- pjmlp 2y agoGood answer to ask Fortune 500 using in office apps, and IT that usually has the policy what matters comes from Microsoft on a full Visual Studio install. I do agree Avalonia and Uno are great projects.