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

WPF App corrupted when using GitHub Action setup-dotnet for .NET 6 #6111

Closed
philfontaine opened this issue Feb 10, 2022 · 5 comments
Closed

Comments

@philfontaine
Copy link

philfontaine commented Feb 10, 2022

Describe the bug

The WPF app is built with GitHub Actions. The compiled application simply does not work (nothing launches, nothing appears).
The App works fine when compiled locally.
The App was created using the default WPF template, so it's a blank page.

To Reproduce

I have a repo here https://github.com/philfontaine/gh-actions-wpf-net-6-bug showing the bug.
The vTest1 release contains the "corrupted" application. You may create another tag vXxx yourself if you don't trust its content. The action runs when pushing a tag starting with v.

I also added a tag vTestManualRelease where I ran the CI steps locally, then replaced the zip in the release with the one compiled locally, redownloaded it. In that case, the app works fine.

More Info

  • .NET 5 works fine. You can see that I created a branch and a tag with .NET 5 to showcase that it works fine.
  • The OS (windows-2019 vs windows-2022) does not matter (both have the same problem).
  • Console applications don't have this problem.

I tried running the corrupted app on an old Windows 7 computer just for fun. I managed to get more information there:

image
image

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@marcpopMSFT marcpopMSFT self-assigned this Feb 10, 2022
@marcpopMSFT marcpopMSFT transferred this issue from dotnet/sdk Feb 11, 2022
@marcpopMSFT marcpopMSFT removed their assignment Feb 11, 2022
@marcpopMSFT
Copy link
Member

Might be the same as dotnet/winforms#6663

@philfontaine
Copy link
Author

@marcpopMSFT Yes it is the same problem. I applied the workaround and it works now. Thanks a lot!

See also dotnet/core#7176

@philfontaine
Copy link
Author

#6109 was created after too so I'll close this one.

@RifHut
Copy link

RifHut commented Feb 15, 2022

also i get errors after switching to dotnet version 6.0.0 and 6.01 and 6.0.2
all work fine on .net version 5.0

@ghost ghost locked as resolved and limited conversation to collaborators Apr 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants