-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port ANCM current directory changes to 2.2 #6150
Conversation
5e43572
to
6dcb847
Compare
Needs to be rebased on release/2.2 code reorganization. |
Please wait to merge until release/2.2 branches are open and this has been approved by shiproom. cref https://github.com/aspnet/AspNetCore-Internal/issues/1610 |
We should bring this back to Shiproom with ANCM folks present. Fix the PR to segregate the test changes. |
@muratg The PR needs to be cleaned up. Cherry pick just the needed commit. |
@pakrym This PR shouldn't have the file renames, keep that in master. And there are conflicts as seen above. Please do the needful and let me know. |
@muratg release/2.2 was force pushed from under my PR. I'll remerge. |
Approved for 2.2.2. |
Before merging, please update the 2.2.2 section of eng/PatchConfig.props: https://github.com/aspnet/Extensions/blob/d8407116d183debaadb801c0cbc41d65927999d6/eng/PatchConfig.props#L7-L10 |
Did it in #6483 |
Ports #6066 #4798 #4369
Description:
In
InProcess
hosting mode process current directory is not set to application physical path location like it was inOutOfProcess
causing hard to diagnose exception inProgram.Main
for a lot of customers. (#6118 #6117 #4206 #5961 huorswords/Microsoft.Extensions.Logging.Log4Net.AspNetCore#55 and more)This change makes process current directory to be application physical path by default.
Regression?
Regression from OutOfProcess hosting mode.
Risk:
Medium-Low. It's hard to predict all the effects changing current directory might have on IIS worker process but testing didn't show any negative ones.
Some things to consider:
w3wp
support working from any current directoryhandlerSetting
option to opt-out of new behaviour.