Environment variables

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.

Environment variables

Postby cheemingyong » Thu Sep 14, 2017 12:31 pm

hi anyone knows how environment variables are packaged in asp.net maker ?

right now things like server.mappath which i need to draw the location of the wwwroot is not working
anymore in .NET core

is this situation addressed in the .NET core version of asp.net maker ?
cheemingyong
 
Posts: 44
Joined: Wed May 17, 2017 12:00 pm

Re: Environment variables

Postby Webmaster » Fri Sep 15, 2017 9:27 am

The hosting environment service in ASP.NET Core (IHostingEnvironment) can be accessed via the static variable: ew_Env

Google for "ASP.NET Core Server.MapPath" if you want to find the ASP.NET Core equivalent of Server.MapPath.
Webmaster
 
Posts: 10734
Joined: Fri Aug 06, 2004 5:59 pm


Return to General Discussion (ASP.NET Maker)