I've build the CEF files needed to build CEFSharp and used update_from_cef.sh to get the correct files from CEF.
But when i start building i succeed in building the cefsharp project, cefsharp.wpf project, cefsharp.wpf.example project after setting .net to 4 and cefsharp.example after setting .net to 4.
System.BadImageFormatException was unhandled
Message=Could not load file or assembly 'CefSharp, Version=1.21.0.17151, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Attempt to load a program with an incorrect format.
Source=CefSharp.Wpf.Example
FileName=CefSharp, Version=1.21.0.17151, Culture=neutral, PublicKeyToken=null
FusionLog==== Pre-bind state information ===
LOG: User = PatrickWisgerho\Patrick Wisgerhof
LOG: DisplayName = CefSharp, Version=1.21.0.17151, Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = file:///D:/Chromium2/ataranto-CefSharp-1e37e78/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : CefSharp.Example, Version=1.21.0.17152, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: D:\Chromium2\ataranto-CefSharp-1e37e78\Debug\CefSharp.Wpf.Example.vshost.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///D:/Chromium2/ataranto-CefSharp-1e37e78/Debug/CefSharp.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
StackTrace:
at CefSharp.Wpf.Example.App..ctor()
at CefSharp.Wpf.Example.App.Main() in D:\Chromium2\ataranto-CefSharp-1e37e78\CefSharp.Wpf.Example\obj\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
I read a little on the internet and found that this may be and win32 / x64 problem.
Also the libcef.dll file i build in the CEF project is 127.467 KB, its and lot bigger than any other libcef file i have seen in the CEFSharp projects.