-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
.NET 6 BrowserSubProcess asks to install .Net Core 3.1 #4295
Comments
The main libs are compiled as Unfortunately
Publishing self contained app is not necessary to self host. I'm going to remove the feature requests tags for now. |
Hi @amaitland and thanks for the response! Here is the output of the CefSharpAfterBuildDebug target:
Any idea why the roll RollForward is not working? I would appreciate that option to work and not add more complicated logic in form of a CefSharp.BrowserSubprocess.exe self host to our deploys. Kind regards |
You appear to be generating a SelfContained = true build, try SelfContained = false and installing the runtime on the target machine.
Self hosting isn't complicated. It in general provides the best user experience. This is the option I would recommend. There's a WPF example at https://github.com/cefsharp/CefSharp.MinimalExample/blob/master/CefSharp.MinimalExample.Wpf/Program.PublishSingleFile.cs |
@amaitland the roll forward works as long as there are .NET runtimes installed in C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App Having a self-contained, published .NET 6 application is not sufficient. Deleting the CefSharp.BrowserSubprocess.runtimeconfig.json file as you describe here solves the roll forward problem! Closing the issue as deleting the file solves my problem. |
There are exclusions in place to remove You can generate a structured build log and see what's going on if you want to debug this further. https://learn.microsoft.com/en-us/shows/visual-studio-toolbox/msbuild-structured-log-viewer Pull requests with improvements welcome. |
Hi,
we include CefSharp.WPF.NETCore in our .NET 6 application. As it turns out (from a troubleshooting session with a customer) you also need to install the .NET Desktop Runtime 3.1(.30) to be able to use CefSharp in our .NET 6 application. Otherwise the main application starts just fine (.NET 6 Desktop Framework is installed) but as soon as you want to access the browser control you get a message about a missing .NET (3.1) framework.
Could you please add a Nuget package for .NET 6 so we don't have to install another runtime on our clients computers?
Thanks and kind regards
The text was updated successfully, but these errors were encountered: