-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Building CefSharp
Information contained on this page is out of date.
Requirements:
- Visual Studio 2019: Supported
- Visual Studio 2017: Supported
- Visual Studio 2015: Supported
- Visual Studio 2013: Not Supported
- Visual Studio 2012: Not Supported
- Visual Studio 2010: Not Supported, if you rebuild the
cef.sdk
NuGet via cef-binary'sbuild.ps1
yourself first. See issue #810. - Visual Studio 2008/.NET 3.5: Not supported any more, but can be used with older CefSharp versions if you really must have .NET 3.5 support.
- Visual Studio 2005: Dream on... :)
Since commit d3a1f1d the native upstream stuff in the CEF/
folder is now all gone from the master
branch. It now relies on that you do a NuGet Restore to pull in the cef.sdk
and cef.redist
native CEF packages into your packages/
folder before you can build CefSharp.
After a successful NuGet Restore
to build you simply open CefSharp3.sln and run Build All.
To run one of the example applications, right click on either the CefSharp.Wpf.Example or CefSharp.WinForms.Example project and choose "Set as Startup Project". Then press F5.
To start building your own WPF application from scratch see https://github.com/cefsharp/CefSharp/blob/master/README.WPF.md or take a look at the CefSharp "Hello World" application in the CefSharp.MinimalExample repo.
The CefSharp project comes with all the files you need to be able to build, run and use the project including the libcef dll and lib files.
To build simply open CefSharp.sln and run Build All.
To run one of the example applications, right click on either the CefSharp.Wpf.Example or CefSharp.WinForms.Example project and choose "Set as Startup Project". Then press F5.
Note: Only the Release folder contains the required CEF dependency files. You either have to switch to the "Release" target in Visual Studio (usually located quite close to the main menu of the program), or copy the files manually from
New instructions for building CEF
can be found at https://github.com/cefsharp/cef-binary/wiki/Building-Cef-from-source