Closed yvef closed 3 years ago
Does Microsoft project use Appdomains to load add-ins?
If so then it's unlikely you'll be able to get CefSharp running in the same process, see https://stackoverflow.com/a/58077862/4583726 for background.
@amaitland Thank you for the info!
If you can load the browser into the default appdomain then you can make it work.
Try checking https://docs.microsoft.com/en-us/dotnet/api/system.appdomain.isdefaultappdomain?view=net-5.0
You can manually call Assembly.Load to pre-load CefSharp.Core.dll or use https://docs.microsoft.com/en-us/dotnet/api/system.appdomain.assemblyresolve?view=net-5.0 with Assembly.Load
See https://github.com/cefsharp/CefSharp/issues/1714#issuecomment-227041722 for an example of AppDomain.CurrentDomain.AssemblyResolve
What version of the product are you using?
What architecture x86 or x64? x64
On what operating system? Win10
Are you using
WinForms
,WPF
orOffScreen
? WinFormsWhat steps will reproduce the problem? Create Microsoft Project Add-In. Open a browser after the add-in was started.
Please provide any additional information below.
Do I know to clarify some point?
Thanks.