C
C#2y ago
mini

❔ Error when using CefSharp's chromium browser

I am creating an instance of ChromiumWebBrowser in the InitializeComponent method of my winforms app. However, upon starting the program, the following exception throws when running the application on the Application.Run line:
System.IO.FileNotFoundException: 'Could not load file or assembly 'CefSharp, Version=107.1.120.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'.
System.IO.FileNotFoundException: 'Could not load file or assembly 'CefSharp, Version=107.1.120.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'.
6 Replies
mini
mini2y ago
Any idea why? Using the newest version of the nuget package and .NET 6
Tvde1
Tvde12y ago
not sure if CefSharp targets .NET 6
mini
mini2y ago
worked in a project some weeks ago
Tvde1
Tvde12y ago
I see a .NET Framework and .NET Core 3.1 csproj file
mini
mini2y ago
It 100% worked in .NET 5, about 6 I'm unsure but why would there be no .NET 6 support
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.