Environment variables

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
cheemingyong
User
Posts: 37

Environment variables

Post by cheemingyong »

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 ?


Webmaster
User
Posts: 9425

Post by Webmaster »

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.


Post Reply