-
Notifications
You must be signed in to change notification settings - Fork 307
IHostingEnvironment Updates #633
Comments
public interface IHostingEnvironment
{
...
string ContentRootPath { get; set; }
IFileProvider ContentRootFileProvider { get; set; }
string WebRootPath { get; set; }
IFileProvider WebRootFileProvider { get; set; }
...
} |
When I saw It seems that isn't the case, but instead |
We had this conversation last week. I believe @DamianEdwards mentioned that elsewhere they were using something like |
The prior art I was referring to was the msbuild "build action" concept where "Content" meant it's not input to the compiler, but may get copied to the output, depending on the value of the "Copy to output dir" setting. That, and there isn't really another good name for it :sad: but I'm all ears on suggestions. |
We made the following changes in our updates in
|
The announcement also mentions the removal of the |
I added a code snippet to the announcement to show the MapPath replacement. |
Could we create a separate discussion work item for this? |
I'll move it #651 |
See discussion at aspnet/PlatformAbstractions#26. We're going to leave out
IApplicationEnvironment
as it's intended as a pure BCL abstraction API and instead we're going to add theContentRootPath
property (and maybe file provider) toIHostingEnvironment
./cc @DamianEdwards @lodejard @JunTaoLuo
The text was updated successfully, but these errors were encountered: