You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
If you set the environment using WebHostBuilder.UseEnvironment and later call WebHostBuilder.Build it will initialize using HostingEnvironmentExtensions: https://github.com/aspnet/Hosting/blob/1.0.0-beta5/src/Microsoft.AspNet.Hosting/WebHostBuilder.cs#L101
This will overwrite the setting applied with UseEnvironment, making this method useless.
Either remove the method, or rewrite the way it is working so that on Build the environment passed in by the user is used.
The text was updated successfully, but these errors were encountered:
If you set the environment using
WebHostBuilder.UseEnvironment
and later callWebHostBuilder.Build
it will initialize usingHostingEnvironmentExtensions
:https://github.com/aspnet/Hosting/blob/1.0.0-beta5/src/Microsoft.AspNet.Hosting/WebHostBuilder.cs#L101
This will overwrite the setting applied with
UseEnvironment
, making this method useless.Either remove the method, or rewrite the way it is working so that on
Build
the environment passed in by the user is used.The text was updated successfully, but these errors were encountered: