Description
First of all, thank you for the great effort of enabling .NET core support. I tried updating our kiosk software from net48
to net5.0-windows
. Using the latest pre-release this was quite easy. But when I published the application using a self-contained runtime it would run but was unable to render the web browser control. After a bit of experimenting I noticed that if I copy all CefSharp
assets to a separate directory and changed CefSettings.BrowserSubprocessPath
property to Path.Combine(currentDirectory, "cefsharp", "CefSharp.BrowserSubprocess.exe")
and not deleting the aforementioned assets from the publish directory everything works as it should.
-
What version of the product are you using?
- v88.2.40-pre
-
What architecture x86 or x64?
- x64
-
On what operating system?
- Windows 10
-
Are you using
WinForms
,WPF
orOffScreen
?- WPF
-
What steps will reproduce the problem?
- Install .NET 5.0.3 SDK
git clone https://github.com/cefsharp/CefSharp.MinimalExample.git
- Change
CefSharp.MinimalExample.Wpf.csproj
target framework tonet5.0-windows
- Update
CefSharp.Wpf.NETCore
package reference to88.2.40-pre
cd CefSharp.MinimalExample
dotnet publish .\CefSharp.MinimalExample.netcore.sln -c Release --runtime win-x64 --self-contained
.\CefSharp.MinimalExample.Wpf\bin.netcore\x64\Release\net5.0-windows\win-x64\publish\CefSharp.MinimalExample.Wpf.netcore.exe
-
What is the expected output? What do you see instead?
- The application starts but is fails to load google.com website