.NET Core 3.1 - support for including CefSharp in library? #3401
Unanswered
omaristalis
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I'd suggest adding a RuntimeIdentifier Please read
Add a RuntimeIdentifier, for dev purposes I use something like #3197 (comment) For reference this is a limitation of
It's actually not something I've had time to test, the references should be transitive and should flow through to the consuming library without issue. As this is the very first release there's likely improvements that can be made. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I thought I'd post here instead of raising an issue as this might be by design, or I might be missing something.
I created a .net core library project using CefSharp.WinForms, and everything seems to be well - I even multi-targetted that library for net472 and netcoreapp3.1, and I could use that everywhere - .net core app, framework app and even interopped into a native C++/CLI app.
However, when I tried converting the NET Core 3.1 library to use CefSharp.WinForms.NETCore, I ran into problems. The output of the build would only include 2 files in the x64/x64 native paths - CefSharp.dll and ijwhost.dll. Everything else is missing, include cefsharp.core.dll (which is the error that you get when you try and use it).
I created a new project from scratch which targetted only netcore 3.1, and had the same issue.
The behaviour is the same when the platform is AnyCPU or x64.
The project file is pretty simple (note I tried every combination of platforms, each on their own and both included as below):
I created a new net core 3.1 winforms application and copied the exact same code over (the only change was to add a button to the main app form to call my code), and it seems to behave - all of the binaries are copied over.
Is including the NET Core version of cefsharp in a library not supported?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions