Net Core - BrowserSubprocess compile as x86/x64 variants

Using an AnyCPU process wouldn't load when the browser process was x86
Basically x86 browser process couldn't use an x64 subprocess

Issue #3197
This commit is contained in:
Alex Maitland
2020-11-06 17:41:45 +10:00
parent 810560cfdd
commit 833ebe49a6
4 changed files with 20 additions and 21 deletions
+3 -4
View File
@@ -164,11 +164,10 @@ namespace CefSharp.Example
if (DebuggingSubProcess)
{
#if NETCOREAPP
settings.BrowserSubprocessPath = Path.GetFullPath("..\\..\\..\\..\\..\\CefSharp.BrowserSubprocess\\bin.netcore\\Debug\\netcoreapp3.1\\CefSharp.BrowserSubprocess.exe");
#else
var architecture = Environment.Is64BitProcess ? "x64" : "x86";
#if NETCOREAPP
settings.BrowserSubprocessPath = Path.GetFullPath("..\\..\\..\\..\\..\\CefSharp.BrowserSubprocess\\bin.netcore\\" + architecture + "\\Debug\\netcoreapp3.1\\CefSharp.BrowserSubprocess.exe");
#else
settings.BrowserSubprocessPath = Path.GetFullPath("..\\..\\..\\..\\CefSharp.BrowserSubprocess\\bin\\" + architecture + "\\Debug\\CefSharp.BrowserSubprocess.exe");
#endif
}