Net Core api 中获取应用程序物理路径wwwroot

如果要得到传统的ASP.Net应用程序中的相对路径或虚拟路径对应的服务器物理路径,只需要使用使用Server.MapPath()方法来取得Asp.Net根目录的物理路径,如下所示: // Classic ASP.NET public class HomeController : Controller {     public ActionResult Index()     {         s
相关文章
相关标签/搜索