-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Added extra probing_paths to relative app directory #54261
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov Issue DetailsFix this issue For area-Host
|
Thanks for the PR. I want to make sure I understand what this is trying to fix: As for the change, this could be considered a breaking change, so I don't think it can be done as-is. I can see two possible solutions:
Personally I would probably prefer the second solution - only change this for .NET 6+. I do think that the current behavior is just wrong, so fixing this is great, but we can't break existing apps (Note that this code lives in As for the actual code of the change:
|
Sorry for the broken code. Fixed the compilation issue and changed the way to join the directories as suggested. I also changed the PR title to not get too confused. This code compiled and ran on my x64 windows, and was compatible in my tests on .NET Core 3.1 and .NET 5, which were the ones I tested. The code was able to find the libraries in the folders for both the current workingDir and the directory of |
I thought about this some more and now I definitely prefer the solution where the behavior is different for .NET 6+. The change should be applied in |
This is looking stale -- I'm going to close it out for now. |
Added extra probing_paths to relative app directory. That way, if the necessary libraries are not found by searching the directory relative to workingDir, the code will look for the additional items that were introduced to the list.
For area-Host