好吧,这个方法可以兼容 Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) 转载于:https://www.cnblogs.com/publish/p/11561315.html