Replies: 1 comment
-
Converting to discussion as this is unlikely something that can be fixed in If further documentation is required this discussion can document the process.
.Net 4.0 - Not supported, minimum is .Net 6.0 - You need to use CefSharp.WinForms.NETCore when targeting
What are
Please provide a clear step by step list of exactly the tasks/commands you've performed. As I said, never used |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
104.4.180
What architecture x86 or x64?
All architectures tested: x86, x84 and "ANYCPU"
What version of .Net?
.Net 4.0
.Net 4.8
.Net 6.0
On what operating system?
Win10
Are you using
WinForms
,WPF
orOffScreen
?WinForms
/* Tried using a minimal example . Code: */
using System.Windows.Forms;
using CefSharp.WinForms;
public class FooForm : Form {
private ChromiumWebBrowser browser;
}
I expected the ChromiumWebBrowser object to instantiate and my interface to load with a web browser interface to work with.
Instead, I see a runtime error that indicates a central library, CefSharp.dll cannot be found.
libcef.dll
then please downloadlibcef.dll.pdb
and place it next tolibcef.dll
to obtain a detailed stack trace, see https://github.com/cefsharp/CefSharp/wiki/Trouble-Shooting#loading-native-symbols-for-easier-diagnosis for details.Exception here:
An exception of type 'System.IO.FileNotFoundException' occurred in Story Writing.dll but was not handled in user code: 'Could not load file or assembly 'CefSharp, Version=104.4.180.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'. The system cannot find the file specified.'
I never was able to get CefSharp running in a VSCode project, so those logs were never generated.
Again, I was using VSCode to build my original project before I tried to implement this. Having had a great deal of success for a variety of projects, I stopped using VS some time ago. Since encountering this issue, it seems that VS has some built-in tools that VSCode does not have sufficient corollaries for. All the same, I think it's worth examining why that is, and whether or not there is additional guidance by the CefSharp team in this area. I hope the information I've provided helps.
Beta Was this translation helpful? Give feedback.
All reactions