Posts

25 January 2023

Server.MapPath in ASP.NET Core

Long time ago we used Server.MapPath to get physical directory of provided relative or virtual path. In Core 3 and above we use IWebHostEnvironment