-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Will this project support AOT in .Net 5? #2714
Comments
@ismlsmile Do you have any source about this? I am curios to read what exactly is planned because as far as I know AOT is only "something that the .NET Core team takes a look at it" and one of them replied in a blog comment a month ago they already have a working winforms prototype. But I couldn't find any information that it is definitely planned for .NET 5. |
@OliaG can you follow up on whether there are any plans in this space, and if we'll be able to leverage what the rest of .NET Core is doing? |
@ismlsmile, thanks for the feedback. The team is still working on a plan for AOT, so it's too early to say which parts will support AOT for .NET 5, but eventually we'd like WinForms to support it too. |
Just a quick update on the current state of this issue: I have tried running the NativeAOT compiler over a simple Windows Forms application. When I run the resulting AOT’d binary, it displays a fully working form with button. I click the button… and get an unhandled exception. NativeAOT does not currently support Unfortunately, properly implementing |
/cc: @AaronRobinsonMSFT @AArnott FYI |
@wjk For my own enlightenment, what is it about |
@AArnott It isn't really anything specific with The C#/WinRT tooling does a fairly decent job of that but even it uses expression trees in some cases. The concrete problem is the plug-in model. If any COM type can be loaded then it isn't known what interfaces it may expose or how so it is hard to know what to generate ahead of time. If the full transitive closure of types is known then it can be done with immense effort - see .NET Native and the UWP ecosystem. |
I think there is a good chance that currently NativeAOT can run you WinForms application. There some work happens to improve situation, and make Winforms works as is. |
I think we can close this question with an answer - no, .NET 5.0 is done, and won't support NativeAOT. However this is not an official promise, the team is aware of the desire to have this capability available, but we have multiple competing priorities, and some things have higher priorities than others. |
In .Net 5, CoreFX will be extended to support AOT. So I wonder if WinForms could support AOT in .Net 5? Thanks.
The text was updated successfully, but these errors were encountered: