This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
BUG: WebHostBuilder.UseEnvironment being overwritten on WebHostBuilder.Build #302
Closed
Description
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.