cefsharp / CefSharp

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
http://cefsharp.github.io/
Other
9.76k stars 2.92k forks source link

No way to put cefsharp files in subdirectory anymore #4831

Closed Xan-Kun closed 1 month ago

Xan-Kun commented 1 month ago

Is there an existing issue for this?

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 commented 1 month ago

Closing as duplicate of #4813

HaukHuang commented 2 weeks ago

关闭#4813的重复内容

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