Closed Clounea closed 1 year ago
[Triage]: Some of the APIs proposed here might be harder to add as they require some runtime changes. We may want to split this issue into two in order to make some progress on the ones that don't. @twsouthwick will look into this.
This relies (at least to get the information automatically) on: https://github.com/dotnet/aspnetcore/issues/43632
Was System.Web.Hosting.HostingEnvironment.MapPath
not added as part of this?
It doesn't seem to be in the 1.3.0 release, that I can see.
@AvremelM you're right - MapPath did not get added here. Feel free to create a new issue and we're happy to take PRs
Summary
There are some APIs of HostingEnvironment missing in .NetCore. I want to ask if there are equivalents and if there is plan to add them to adapter.
Motivation and goals
We need migrate code (an API in Sharepoint) to ASP.NetCore and we find that the APIs are not supported by ASP.NetCore. These APIs seem not supported by IHostEnvironment.
In scope
Examples
Use applicationId to find objects of the application
Get User from context when it is hosted
Use SiteName to find objects of a site
If the physicalpath (filepath) does not exist, return