Replies: 2 comments 8 replies
-
Creating a winexe that targets AnyCpu is not recommend. AnyCpu exists for library projects in .Net 5/6. See #2796 (comment) Did you read the post installation instructions? https://github.com/cefsharp/CefSharp/blob/cefsharp/97/NuGet/PackageReference/Readme.txt#L10 There is a working example at https://github.com/cefsharp/CefSharp.MinimalExample you can modify the netcore project to target .net 6 for testing purposes.
It doesn't actually add anything directly and these can likely be ignored. They should in fact be hidden, still waiting on Microsoft to provide a solution for that see NuGet/Home#4856 If you set a RuntimeIdentifier this should go away. |
Beta Was this translation helpful? Give feedback.
-
Hi, thank you for the information. I did some changes to project settings.
When run, it crashes silently with different errors. I FORGOT to mention, the form with the browser control is in a CLASS PROJECT and packed into the NUGET package. Thank you |
Beta Was this translation helpful? Give feedback.
-
Hi!
I created a project for .NET 6 with Any CPU. Installed the latest version of CefSharp.WinForms.NETCore (97.1.61).
It adds a lot of files into the project (language packs (*.pak) and CefSharp.dll, Ijwhost.dll, libEGL.dll, libGLESv2.dll). I excluded them, it does nothing if there are present in the project or not.
When I run this project, it crashes silently and creates an event in the windows event log that CefSharp.dll is missing.
In debug folder after build, there is a runtimes folder, inside is win-x64. inside is lib and native. Lib contains netcoreapp3.1, if I copy the contents of this folder into the native folder... it works!
Project settings:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions