Skip to content
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

Can an application structure based on WPF and the Prism framework using IoC be compiled using AOT? #104660

Closed
JusterZhu opened this issue Jul 10, 2024 · 4 comments

Comments

@JusterZhu
Copy link

Currently, I am using .NET 8, WPF, Prism, and designing with an IoC structure. I hope to compile an application using AOT for commercial use. Can it perfectly support AOT? If not, what modifications do I need to make to achieve this? Or is it currently not possible?

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Jul 10, 2024
@driver1998
Copy link

WPF would be impossible for now because of its C++/CLI usage, will need to migrate all that to pure C++ or pure C# first.

See dotnet/wpf#6663 and dotnet/wpf#5305.

@huoyaoyuan
Copy link
Member

See the tracking issues dotnet/wpf#3811 dotnet/winforms#4649 . The supporting work is not completed yet.

@MichalStrehovsky
Copy link
Member

Like it was said - WPF depends on C++/CLI and is not trimmable. This needs to be fixed in WPF first.
WinForms can be made to work if you don't mind having to re-test the app with AOT enabled a lot. It's not recommended, but possible.

The UI framework that works with native AOT right now the best is Avalonia.

@MichalStrehovsky MichalStrehovsky closed this as not planned Won't fix, can't repro, duplicate, stale Jul 10, 2024
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Jul 10, 2024
@JusterZhu
Copy link
Author

Thank you very much for everyone's responses.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

4 participants