mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user