I am trying to host CefSharp.Winform (Chromium web browser control for winform) in VSTO Outlook addin using VS2015 with no success.
The steps I am following are:
- Create a outlook 2013 addin project.
- change solution setting from any CPU to x86
- install CefSharp.Winfom using nugget.
- Access Cef, such as cef.initialize() in code.
- compile the project without error.
But when run the addin, it gives error of "Cannot load file or assembly CefSharp.Core.dll or one of the dependencies.."
I have compiled the sample winform project and run it without an issue. Also, I have tried to copy all dependency from winform project to outlook and still there is a same issue.
Any idea how to get CefSharp.WinForm to work in addin environment?