web程序获取根目录:HttpContext.Current.Server.MapPath
Windows Application和Console获取根目录:System.Environment.CurrentDirectory
Windows Service 获取根目录:System.Threading.Thread.GetDomain().BaseDirectory
获取程序根目录方法
web程序获取根目录:HttpContext.Current.Server.MapPath
Windows Application和Console获取根目录:System.Environment.CurrentDirectory
Windows Service 获取根目录:System.Threading.Thread.GetDomain().BaseDirectory
1931
1590

被折叠的 条评论
为什么被折叠?