Skip to content
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
@giggio

Description

@giggio

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions