Quantcast
Viewing latest article 43
Browse Latest Browse All 663

Map Physical Paths with an HttpContext.MapPath() Extension Method in ASP.NET

ASP.NET Core doesn't have a Server.MapPath() method as classic ASP.NET had, and getting at the root path in Core is a little bit more involved than in those older versions. In this post I describe how to find the application Content and Web root folders and describe a MapPath() helper that simulates the old behavior.

Viewing latest article 43
Browse Latest Browse All 663

Trending Articles