From 5bc4a0b1cc595b83f81149bf656de48f93758296 Mon Sep 17 00:00:00 2001 From: celeron533 Date: Sat, 4 Apr 2020 12:03:38 +0800 Subject: [PATCH] Fix autostart issue #2841 --- shadowsocks-csharp/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/shadowsocks-csharp/Program.cs b/shadowsocks-csharp/Program.cs index e24ab322..5b723acd 100755 --- a/shadowsocks-csharp/Program.cs +++ b/shadowsocks-csharp/Program.cs @@ -26,6 +26,7 @@ namespace Shadowsocks [STAThread] static void Main(string[] args) { + Directory.SetCurrentDirectory(Application.StartupPath); // todo: initialize the NLog configuartion Model.NLogConfig.TouchAndApplyNLogConfig();