C# windows服务:如何获取服务程序所在的文件夹

AppDomain.CurrentDomain.BaseDirectory

就这么一句话

原文地址:https://www.cnblogs.com/lujin49/p/3556756.html