WebForm
System.Web.HttpContext.Current.Request.PhysicalApplicationPath
WinForm
AppDomain.CurrentDomain.BaseDirectory
转载于:https://www.cnblogs.com/zhangpengshou/archive/2007/08/30/875471.html
转载于:https://www.cnblogs.com/zhangpengshou/archive/2007/08/30/875471.html