Here Mudassar Ahmed Khan has explained a short tutorial with example on how to use IHostingEnvironment interface in ASP.Net Core.
Microsoft has permanently removed Server.MapPath function from .Net Core and introduced a new interfaces IHostingEnvironment for .Net Core 2.0.
↧