using VOL.Core.BaseProvider.ServerMapPath; using System; using System.Collections.Generic; using System.Text; using VOL.Core.Extensions.AutofacManager; namespace VOL.Core.Extensions { public static class ServerExtension { /// /// 返回的路径后面不带/,拼接时需要自己加上/ /// /// /// public static string MapPath(this string path) { return MapPath(path, false); } /// /// /// /// /// 获取wwwroot路径 /// public static string MapPath(this string path,bool rootPath) { return AutofacContainerModule.GetService().MapPath(path,rootPath); } } }