C# 获得文件的执行路径的方法

   var path = System.Reflection.Assembly.GetEntryAssembly().Location;

原文地址:https://www.cnblogs.com/bruce1992/p/14943590.html