AutoCAD 2022 CefSharp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We use CefSharp.WinForms to render some Content in an AutoCAD plugin. In the past everything works fine with AutoCAD 2020. Since we have updated to AutoCAD 2022 we have problems when resolving the dll's of CefSharp.
When we call
var settings = CefSharp.WinForms.CefSettings();
We get an Exception:
System.IO.FileLoadException: 'Eine von "CefSharp.Core.Runtime.dll" importierte Prozedur konnte nicht geladen werden.' (translated: "Unable to load imported procedure")
We found the following topic:
https://forums.autodesk.com/t5/net/autocad-2021-cefsharp/td-p/9725613
But there is no solution for us because we don't want to switch the WebView-Control or to WebView2.
Some notes about our AutoCAD plugin:
We install the binaries in its own directory (not under C:\Program Files\Autodesk\AutoCAD 2022):
C:\Program Files\<our company>\xyz\BIN
We implement IExtensionApplication and load the plugin with netload.
To resolve our dll's we use the Event
AppDomain.AssemblyResolve
with
Assembly.LoadFrom()