diff --git a/CefSharp.Example/CefExample.cs b/CefSharp.Example/CefExample.cs index 6a872a37b8..bd5386c398 100644 --- a/CefSharp.Example/CefExample.cs +++ b/CefSharp.Example/CefExample.cs @@ -4,6 +4,7 @@ using System; using System.Diagnostics; +using System.IO; using System.Text; using CefSharp.Example.Properties; using CefSharp.Example.Proxy; @@ -152,7 +153,7 @@ public static void Init(CefSettingsBase settings, IBrowserProcessHandler browser if (DebuggingSubProcess) { var architecture = Environment.Is64BitProcess ? "x64" : "x86"; - settings.BrowserSubprocessPath = "..\\..\\..\\..\\CefSharp.BrowserSubprocess\\bin\\" + architecture + "\\Debug\\CefSharp.BrowserSubprocess.exe"; + settings.BrowserSubprocessPath = Path.GetFullPath("..\\..\\..\\..\\CefSharp.BrowserSubprocess\\bin\\" + architecture + "\\Debug\\CefSharp.BrowserSubprocess.exe"); } settings.RegisterScheme(new CefCustomScheme diff --git a/CefSharp.WinForms.Example/Program.cs b/CefSharp.WinForms.Example/Program.cs index 19161de317..209cd82b06 100644 --- a/CefSharp.WinForms.Example/Program.cs +++ b/CefSharp.WinForms.Example/Program.cs @@ -41,7 +41,7 @@ public static int Main(string[] args) #endif var settings = new CefSettings(); - settings.BrowserSubprocessPath = "CefSharp.WinForms.Example.exe"; + settings.BrowserSubprocessPath = System.IO.Path.GetFullPath("CefSharp.WinForms.Example.exe"); Cef.Initialize(settings);