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

No way to put cefsharp files in subdirectory anymore #4831

Closed
1 task done
Xan-Kun opened this issue Jun 10, 2024 · 3 comments
Closed
1 task done

No way to put cefsharp files in subdirectory anymore #4831

Xan-Kun opened this issue Jun 10, 2024 · 3 comments

Comments

@Xan-Kun
Copy link

Xan-Kun commented Jun 10, 2024

Is there an existing issue for this?

  • I have searched both open/closed issues, no issue already exists.

CefSharp Version

125.0.210

Operating System

Windows 10

Architecture

x64

.Net Version

.NET 8

Implementation

WinForms

Reproduction Steps

In a SelfContained WinForms x64 project, use any method mentioned anywhere (docs, github, SO) with the current cefsharp version and it will be impossible to put the cefsharp spedific files into a subdirectory.
Not even moving them in an AfterBuild target will work.
Various crashes, from "Breakpint has been reached" to not finding DLLs that are there.
And locales are copied twice, one extra time from the example project in a AfterBuild target. (?)

I'm pretty sure this is a bug (since it destroyed 3 of my projects and I have to migrate to WebView2 real quick now), but if it's not, I would be really interested in why 🤔

Expected behavior

ANY way (no matter how cumbersome) to put the cefsharp files into a dedicated subdirectory.

Actual behavior

It is impossible, atm.

Regression?

Worked perfectly with CefSharpTargetDir.

Known Workarounds

None. (Some of the older forum entries had a workaround, but none of them are functioning anymore)

Does this problem also occur in the CEF Sample Application

Yes using WinForms command line args

Other information

Funnily, libcef.dll has to be in at least two places now, to make LocalesDirPath work at all. 😄

@amaitland
Copy link
Member

Closing as duplicate of #4813

@HaukHuang
Copy link

关闭#4813的重复内容

If you close this question, please provide an answer。
I also searched for a long time but couldn't find the correct answer.

@Xan-Kun
Copy link
Author

Xan-Kun commented Sep 12, 2024

@HaukHuang I couldn't get it working and spent a lot of time on it. If there is a solution, I still don't know about it.
I ended up splitting the app in two parts, where only one has references to CefSharp and the other runs in its own process/AppDomain. 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants