The .net 6 winform project generates a single file, calling cefsharp is stuck #4540
Replies: 1 comment
-
In future please use Discussions to ask support related questions. Start by asking how to publish as a single file rather than asserting there's a bug.
This is for self contained builds, not single file ones. Both require self hosting the browser sub process, not deleting the
Entirely meaningless as you've not specified which publish settings you have used. See #4444 (comment) for relevant links.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there an existing issue for this?
CefSharp Version
112.2.100
Operating System
Windows 10
Architecture
x86
.Net Version
.net 6
Implementation
WinForms
Reproduction Steps
` Private Sub 发布视频_Shown(sender As Object, e As EventArgs) Handles Me.Shown
Try
' 初始化CEF设置
myFileDeal.CreateDirectory(当前路径 + "\cefcache")
Dim settings As New CefSettings()
settings.CachePath = 当前路径 + "\cefcache"
settings.CefCommandLineArgs.Add("enable-media-stream", "1")
settings.CefCommandLineArgs.Add("disable-gpu", "1")
The execution process is stuck, and the program is exited. The released program is release, x86 or x64, single-file program
Expected behavior
open the Web page
Actual behavior
After publishing the single-file program, open this form, the form is stuck, and the program closes after a few minutes
Regression?
No response
Known Workarounds
Refer to the #3407 problem content, delete the CefSharp.BrowserSubprocess.runtimeconfig.json file, but it is still useless
Does this problem also occur in the CEF Sample Application
Yes using WPF/OffScreen command line args
Other information
No response
Beta Was this translation helpful? Give feedback.
All reactions