-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Generic Host Builder and HostingEnvironment.IsDevelopment #4150
Copy link
Copy link
Closed
Labels
DoneThis issue has been fixedThis issue has been fixedarea-hostingIncludes HostingIncludes Hostingarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing one
Milestone
Metadata
Metadata
Assignees
Labels
DoneThis issue has been fixedThis issue has been fixedarea-hostingIncludes HostingIncludes Hostingarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing one
Type
Fields
Give feedbackNo fields configured for issues without a type.
From @dazinator on July 5, 2018 17:7
I am using the new generic host in 2.1.0 as documented here: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/generic-host?view=aspnetcore-2.1
When the hosting environment is development, I'd like to add user secrets:
However
IsDevelopmentalways returns false.Yet I have set the
ASPNETCORE_ENVIRONMENTenironment variable. Here is my launch settings:It would make sense if
ASPNETCORE_ENVIRONMENTwas no longer used to control this for a generic host as we are not in asp.net core land - but in that case is there now a different environment variable name for this, or do we set the Environment name ourselves in code?Copied from original issue: #3298