I want to set /src/Website as the ContentRoot (as opposed to the bin directory), however I'm noticing that the ContentRoot is then being overwritten by AppContext.BaseDirectory within here
It strikes me that the .useContentRoot(...) call on the aforementioned line should only occur if the content root hasn't already been set by the invocation of the builder delegate above it.
I'm currently configuring the TestServer by using the
IWebHostBuilder
delegate like so:I want to set
/src/Website
as the ContentRoot (as opposed to the bin directory), however I'm noticing that the ContentRoot is then being overwritten byAppContext.BaseDirectory
within hereIt strikes me that the
.useContentRoot(...)
call on the aforementioned line should only occur if the content root hasn't already been set by the invocation of the builder delegate above it.