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 is released as a single file and cannot be run. #3634

Closed
lifuhua123 opened this issue Oct 12, 2020 · 5 comments
Closed

Wpf app is released as a single file and cannot be run. #3634

lifuhua123 opened this issue Oct 12, 2020 · 5 comments
Labels
Bug Product bug (most likely)

Comments

@lifuhua123
Copy link

  • .NET Core Version: ( .net 5 RC.1)
  • Windows version: (windows 10)
  • Does the bug reproduce also in WPF for .NET Framework 4.8?:No
  • Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)?:No
  • Security issues and bugs should be reported privately, learn more via our responsible disclosure guidelines.

Problem description:
I tried winform and wpf independent deployment scheme under .net 5 RC.1, winform can run successfully, but wpf cannot start.

Actual behavior: The program cannot be started
Expected behavior: The program runs normally

Minimal repro: Build a basic wpf program based on .net 5,select single file and ReadyToRun publish.

@ryalanms
Copy link
Member

@lifuhua123: This doesn't work in RC1. Can you try RC2 or later? Thanks.

@lindexi
Copy link
Member

lindexi commented Oct 13, 2020

Duplicate of #3516 ?

@ryalanms
Copy link
Member

Thanks, @lindexi. WPF works with RC2+ for me locally, but I do hit the bug @ericstj identified. RC1 doesn't start.

@ducanhtk5
Copy link

I get an error in Event Viewer when I try to open a new window:

Faulting module name: KERNELBASE.dll, version: 10.0.19041.572, time stamp: 0x1183946c
Exception code: 0xc000041d
Fault offset: 0x0000000000023e49
Faulting process id: 0x68b8
Faulting application start time: 0x01d6a378582d3a65

@ryalanms
Copy link
Member

Could you share the version of the .NET SDK that is installed? Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Product bug (most likely)
Projects
None yet
Development

No branches or pull requests

4 participants