-
Notifications
You must be signed in to change notification settings - Fork 446
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
Add arm64 as a possible WinForms arch #7457
Conversation
Makes it possible to build/publish arm64 winforms app. WPF/Full Winforms+WPF should still fail as a build time scenario.
FYI @richlander |
Do we have a runtime pack for this yet? Ideally I'd like to also add a basic test that this works. |
There are at least three pieces we need:
Will we have all of these after this PR merges? |
Yes, this I have to look how to do. Tom and I confirmed manually it worked but it would be good to actually confirm it works as expected. I'll take a look at the tree tomorrow to see where they are. Ideally I could test these two:
Should I also open an issue to track the cleanup? |
Are you blocked by this change? If not, I think we should checkin until the feature can work. Yes, you should open an issue to track everything that is required for this feature to function. |
There's some loose ends here:
All three are done to some extent:
|
I would like to see a simple test case that we can build a self-contained Windows Forms app for ARM64 before merging this. I don't think we need to address #7467 before merging this though. |
I validated installing and using PowerShell today with this build: https://gist.github.com/richlander/d3521d2f8798405e1b5eb1d8e5805fbd I did more than what is demonstrated there, but it still makes the point. |
@fabiant3 please review. |
/cc @dotnet/wpf-developers |
This should be easy enough to construct today in dotnet/windowsdeskop. WPF produces ref-assemblies from x86 legs for both x86 and x64. In a future arm64 scenario, I would expect that WPF would continue shipping ref-assemblies from its x86 build-leg (ref-assemblies are built from special projects built as AnyCPU). The |
change itself lgtm 👍 |
|
Added a test doing rid specific publishes, where WinForms succeeds but WPF fails |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Although we need a separate change in dotnet/SDK to generate a better error message. This current error message is cryptic for the customer. And they should know it is a restriction from the platform, and there is nothing they can do to make it work. |
Let me know if you don't have the access to merge this PR. I can merge it |
My ask: Can you merge this PR by EOD Monday, if at all possible? That would help me a lot. |
@msftbot please merge this in an hour. Talked with @richlander and this has been acknowledged by the WPF team. Giving some time in case anyone in their team wants to add a review. |
This reverts commit a3fc14f.
Makes it possible to build/publish ARM64 WinForms apps.
UseWPF
it will fail as a build time scenario as there's no available runtime pack.UsingWindowsForms
will correctly compile and run natively as long as all the references are in the assemblies produced by winforms.cc: @merriemcgaw, @tommcdon