读取服务路径根目录

Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);

原文地址:https://www.cnblogs.com/Andy-Li/p/6306997.html