diff --git a/CefSharp.MinimalExample.OffScreen/Program.cs b/CefSharp.MinimalExample.OffScreen/Program.cs index 47fbdff..850c3aa 100644 --- a/CefSharp.MinimalExample.OffScreen/Program.cs +++ b/CefSharp.MinimalExample.OffScreen/Program.cs @@ -22,7 +22,8 @@ namespace CefSharp.MinimalExample.OffScreen Console.WriteLine("You may see Chromium debugging output, please wait..."); Console.WriteLine(); - Cef.Initialize(new CefSettings()); + //Perform dependency check to make sure all relevant resources are in our output directory. + Cef.Initialize(new CefSettings(), shutdownOnProcessExit: true, performDependencyCheck: true); // Create the offscreen Chromium browser. browser = new ChromiumWebBrowser(testUrl); diff --git a/CefSharp.MinimalExample.WinForms/Program.cs b/CefSharp.MinimalExample.WinForms/Program.cs index 9825e86..3a182c7 100644 --- a/CefSharp.MinimalExample.WinForms/Program.cs +++ b/CefSharp.MinimalExample.WinForms/Program.cs @@ -12,7 +12,8 @@ namespace CefSharp.MinimalExample.WinForms [STAThread] public static void Main() { - Cef.Initialize(new CefSettings()); + //Perform dependency check to make sure all relevant resources are in our output directory. + Cef.Initialize(new CefSettings(), shutdownOnProcessExit:true, performDependencyCheck:true); var browser = new BrowserForm(); Application.Run(browser); diff --git a/CefSharp.MinimalExample.Wpf/App.xaml.cs b/CefSharp.MinimalExample.Wpf/App.xaml.cs index 6320190..1059dff 100644 --- a/CefSharp.MinimalExample.Wpf/App.xaml.cs +++ b/CefSharp.MinimalExample.Wpf/App.xaml.cs @@ -6,7 +6,8 @@ namespace CefSharp.MinimalExample.Wpf { public App() { - Cef.Initialize(new CefSettings()); + //Perform dependency check to make sure all relevant resources are in our output directory. + Cef.Initialize(new CefSettings(), shutdownOnProcessExit: true, performDependencyCheck: true); } } }