I am trying to add the Cef.WinForms library to my project and I'm following the steps found here
CodePudding user response:
As noted in the comments, when targeting .Net 5.0
you'll need to use the packages with the NETCore suffix.
For .Net Core 3.1/.Net 5.0
- https://www.nuget.org/packages/CefSharp.WinForms.NETCore/
- https://www.nuget.org/packages/CefSharp.Wpf.NETCore/
- https://www.nuget.org/packages/CefSharp.OffScreen.NETCore/
NOTE A minimum of .Net Core 3.1
is required.
For the .Net 4.5.2
to .Net 4.8
- https://www.nuget.org/packages/CefSharp.WinForms/
- https://www.nuget.org/packages/CefSharp.Wpf/
- https://www.nuget.org/packages/CefSharp.OffScreen/
All packages require Microsoft Visual C 2019 or greater.
Ijwhost.dll
To support C /CLI libraries in .NET Core/.Net 5 , ijwhost was created by Microsoft as a shim for finding and loading the runtime. All C /CLI libraries are linked to this shim, such that ijwhost.dll is found/loaded when the C /CLI library is loaded. It's important this dll is distributed with your application.