Consumption of Nuget package outside of Visual Studio #3813
Replies: 2 comments 3 replies
-
Here in the discussions section is perfectly fine 👍
For It probably means it was unable to load one of the dependencies, I'm guessing.
Without knowing how
The default handling is used first. Basically all the unmanaged resources should be loaded relatively to
There is a ref assembly and a |
Beta Was this translation helpful? Give feedback.
-
For anyone landing here, we have a solution - https://stackoverflow.com/questions/69923244/cefsharp-offscreen-in-linqpad/69997723#69997723 |
Beta Was this translation helpful? Give feedback.
-
Apologies if I'm not supposed to post this here, but I did notice the Questions-and-Support has been archived.
I'm attempting to use CefSharp from Linqpad
Linqpad6 (64bit .net core version) and CefSharp.Offscreen.NetCore specifically.
var b = new ChromiumWebBrowser();
is all that is in the script.
Which results in
BadImageFormatException
Could not load file or assembly 'CefSharp.Core.Runtime, Version=93.1.111.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138'. An attempt was made to load a program with an incorrect format.
I can run CefSharp in Visual Studio without error.
I've tried all manner of hacking to get it to work including
I suspect it either has something to do with how LP loads the dll's vs how VS does it, or CefSharp is doing some runtime dynamic assembly loading under the hood incorrectly?
I notice that there isn't even a 64bit version of CefSharp.Offscreen.dll in the nuget package, and I suspect this is only supposed to be a design time reference? But I'm over my head here.
Does this look like a CefSharp or Linqpad problem ?
Beta Was this translation helpful? Give feedback.
All reactions