Skip to content

Commit c9ad364

Browse files
committed
Revert "ClickOnce - Load CefSharp.dll from parent directory if not in current directory"
This reverts commit d3a2da4. This reverts commit aee97e6. Change needs more work/testing so reverting for now in preparation for the 89-pre release
1 parent d3a2da4 commit c9ad364

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

CefSharp.BrowserSubprocess/Program.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
44

55
using System.Diagnostics;
6-
using System.Runtime.CompilerServices;
76
using CefSharp.RenderProcess;
87

98
namespace CefSharp.BrowserSubprocess
@@ -21,20 +20,6 @@ public static int Main(string[] args)
2120
{
2221
Debug.WriteLine("BrowserSubprocess starting up with command line: " + string.Join("\n", args));
2322

24-
if(!System.IO.File.Exists("CefSharp.dll") && System.IO.File.Exists("..\\CefSharp.dll"))
25-
{
26-
//For publshing ClickOnce AnyCPU CefSharp.dll isn't included in the x64 build
27-
//and the BrowserSubprocess fails to launch as a result.
28-
//As a temp workaround load the file from the parent directory.
29-
System.Reflection.Assembly.LoadFrom("..\\CefSharp.dll");
30-
}
31-
32-
return MainInternal(args);
33-
}
34-
35-
[MethodImpl(MethodImplOptions.NoInlining)]
36-
private static int MainInternal(string[] args)
37-
{
3823
SubProcess.EnableHighDPISupport();
3924

4025
//Add your own custom implementation of IRenderProcessHandler here

0 commit comments

Comments
 (0)