ataranto / CefSharp

.Net binding for the Chromium Embedded Framework
Other
62 stars 34 forks source link

Types defined in wrong assemblies #32

Closed mwisnicki closed 11 years ago

mwisnicki commented 12 years ago

Following types should be defined CefSharp.dll:

but instead end up in CefSharp.WinForms.dll and CefSharp.Wpf.dll. In fact ScriptCore is duplicated everywhere.

This makes it problematic when both dlls are referenced.

In case of BrowserSettings it's probably caused by the fact that a ref class definition is being included instead of referenced with "using" and the source file shouldn't be a header at all. CefSharp.ScriptCore should be somehow marked as native type, perhaps pragma managed(push,off).

Unfortunately I was unable to get it to compile with suggested changes.

ataranto commented 12 years ago

Including both WinForms and Wpf dlls isn't supported right now due to this. I'd be open to a solution to this, though.