Unable to initialize module when not using IncludeAllContentForSelfExtract, .net 5 #3533
Unanswered
DanielRBaird
asked this question in
Q&A
Replies: 1 comment 2 replies
-
A PR referencing this discussion would be preferable.
If your embedding the native resources then I'd be surprised if this is possible though your welcome to do your own research, reach out to someone on the dot net team perhaps? #3407 has my research to date If you don't embed the native resources then this should be possible (from memory this is the default). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently working on upgrading an application to .net 5, and I'm trying to take advantage of the changes to single file publishing so that we don't need to extract so many files.
Unfortunately when using the latest netcore version of cefsharp this results in a crash unless you use
IncludeAllContentForSelfExtract
.This can be reproduced in the minimal example, but removing the
IncludeAllContentForSelfExtract
setting and publishing a single file for net-5.0.The result is this crash:
Location of the crash: Initializer.cs
Ultimately this is caused because net 5 returns an empty string for
Assembly.Location
now, so another method is needed to get the proper paths.Should this be made into a bug issue?
Has anyone figured another way around it without including all content for self extract?
Beta Was this translation helpful? Give feedback.
All reactions