ASP.NET Core: Replacement for Server.MapPath

added by DotNetKicks
11/12/2018 12:39:22 PM

2 Kicks, 318 Views

There's no Server.MapPath() in ASP.NET Core and things are way different than with old ASP.NET MVC. This blog post shows how application and public web files are organized in ASP.NET Core and how to access them from web applications. ASP.NET Core offers two different locations for files: Content root - this is where application binaries and other private files are held.