Posted on Leave a comment

How to set the hosting environment in ASP.NET Core

Using PowerShellAlternatively, you can use PowerShell to set the variable. In PowerShell, as well as the normal user and system variables, you can also create a temporary variable using the $Env: command:$Env:ASPNETCORE_ENVIRONMENT = “Development”

Source: How to set the hosting environment in ASP.NET Core

Leave a Reply

Your email address will not be published. Required fields are marked *