Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3k
Upgrading from CefSharp 1
Alex Maitland edited this pageJun 15, 2015 ·4 revisions
Things to note when Upgrading from CefSharp 1
Switch CefSharp Version
- Remove CefSharp1 References (CefSharp, CefSharp.WinForms)
- Delete all libs / locales of CefSharp1
- Close Visual Studio completely and then reopen
- Install CefSharp3 through Nuget (I just installed CefSharp.WinForms - it installs all required libraries as well)
- Close Visual Studio completely and then reopen
- Specify platform (x86 / x64)
Change class names
- Renamed
WebViewtoChromiumWebBrowser - Renamed
LoadCompletedtoFrameLoadEnd - Renamed
CEFtoCef - Renamed
CefSharp.SettingstoCefSettings - Change BrowserSettings initialization
webView=newWebView(url,browserSettings);tothis webView=newChromiumWebBrowser(url);webView.BrowserSettings=browserSettings;
- Rename
ExecuteScripttoExecuteScriptAsync - No more
webView.PropertyChanged(Use individual events inWinFormsor DataBinding inWPF) - Change
RequestHandler:- remove
RequestHandleandDownloadHandlerclass implementations - addDownloadHandler
- change
webView.RequestHandler=newRequestHandler();towebView.DownloadHandler=newDownloadHandler();
- remove
ILifeSpanHandler.OnBeforePopuphas different parameters- so Implement Interface of
ILifeSpanHandlerand remove the old function signature
- so Implement Interface of
Your problem not listed here? Check outhttps://github.com/cefsharp/CefSharp/issues?q=is%3Aissue+label%3Acef1-cef3-upgrade or try searching on theCefSharp Google Group