Minimal example of how the CefSharp library can be used using the official Nuget packages
- .NET Framework solution (
CefSharp.MinimalExample.sln) - .NET Core solution (
CefSharp.MinimalExample.netcore.sln).
Includes examples for
- WinForms
- WPF
- OffScreen
For a more complete example of each project see the main CefSharp repository.
The first -pre set of NETCore/Net 5 packages are now on Nuget.org
- https://www.nuget.org/packages/CefSharp.WinForms.NETCore/87.1.130-pre
- https://www.nuget.org/packages/CefSharp.Wpf.NETCore/87.1.130-pre
- https://www.nuget.org/packages/CefSharp.OffScreen.NETCore/87.1.130-pre
- Publish Example
- x86: `dotnet publish -f netcoreapp3.1 -r win-x86
- x64: `dotnet publish -f netcoreapp3.1 -r win-x64
It is possible to publish the application as single EXE file by adding -p:PublishSingleFile=true.
Any problems please report them on cefsharp/CefSharp#3197
The same packages listed above in the .Net Core section should be used for .Net 5.0