Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

WebHostBuilder should have an option to set the IApplicationEnvironment.ApplicationName #613

Closed
pranavkm opened this issue Feb 25, 2016 · 4 comments
Assignees
Milestone

Comments

@pranavkm
Copy link
Contributor

We could default this to the StartupAssemblyName \ WebHostOptions.Application. In addition, it would be useful to be able to set these properties independently of each other.

@pranavkm
Copy link
Contributor Author

More background: In Mvc, we treat the IApplicationEnvironment.ApplicationName as the entry assembly. This is required to make controller discovery work when the actual entry point is the test runner but the test wants Mvc to treat the test assembly as the entry point. It'd be nice to take advantage of the IApplicationEnvironment that the builder creates rather than creating and injecting a mock one in the test,

@davidfowl
Copy link
Member

/cc @JunTaoLuo

@muratg muratg added this to the 1.0.0-rc2 milestone Feb 29, 2016
@muratg
Copy link

muratg commented Feb 29, 2016

Looks like a good change. Assigning to @JunTaoLuo

@JunTaoLuo
Copy link
Contributor

Merged to dev

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants