Publish self-contained .NET 5 application (original) (raw)

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.

image