获取当前正在执行的服务器应用程序根目录的物理文件系统路径

WebForm
System.Web.HttpContext.Current.Request.PhysicalApplicationPath
WinForm
AppDomain.CurrentDomain.BaseDirectory
原文地址:https://www.cnblogs.com/zhangpengshou/p/875471.html