Created
January 26, 2020 14:07
-
-
Save CoreProgramm/ae8dc416fafbe695acdd2f62d34afeba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HomeController : Controller | |
{ | |
private readonly IHostingEnvironment _hostingEnv = null; | |
string AppBasePath = null; | |
string ContentRootPath = null; | |
public HomeController(IHostingEnvironment HostingEnv) | |
{ | |
_hostingEnv = HostingEnv; | |
AppBasePath = _hostingEnv.WebRootPath; //path to wwwroot | |
ContentRootPath = _hostingEnv.ContentRootPath; //path to GetBasePath | |
} | |
public IActionResult Index() | |
{ | |
return View(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment