Example - Make BrowserSubProcess paths absolute

Issue #3102
This commit is contained in:
amaitland
2020-04-29 08:13:08 +10:00
parent 924e7bd457
commit 4d7fa50c16
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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 @@ namespace CefSharp.Example
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