-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
is there any reasons that merging working dir not app base dir into probing path? #3708
Comments
it should be supposed to merge app base dir. |
I don't know - but it's unlikely to change now. Changing it would be a significant breaking change. Also note that it's not just in the |
i edited this line https://github.com/dotnet/core-setup/blob/6db018b7fc5c104810f5a53b538841004e099713/src/corehost/cli/fxr/fx_muxer.cpp#L217 to pal::string_t probe_path = host_info.dotnet_root.c_str() + path; everything seems working properly, no |
There are multiple ways to specify additional probing paths, one such way is command line:
With your proposed change such script would stop working. Before your change it would look for the Similar argument can be made about other ways to specify additional probing paths. I personally agree that at least those probing paths specified in the If your mains scenario is ways to reorganize files in the app layout via modifications to |
right, probing paths specified in the |
if (probe_paths->second.is_string())
{
m_probe_paths.insert(m_probe_paths.begin(), get_directory(m_path).c_str() + probe_paths->second.as_string());
}
else
{
const auto& arr = probe_paths->second.as_array();
for (auto iter = arr.rbegin(); iter != arr.rend(); iter++)
{
m_probe_paths.push_front(get_directory(m_path).c_str() + iter->as_string());
}
} |
Thanks - that makes sense. But we're still facing the fact that it would be a breaking change. I'm curious, do you think #3525 would fix your scenario? |
partially, it only works perfectly when combo with |
Can I ask why is that? If we fix #3525 you should be able to specify any path relative to app base in the |
this method also base on the probe config, i don't think we can avoid modifying probing path part. |
https://github.com/dotnet/core-setup/blob/6db018b7fc5c104810f5a53b538841004e099713/src/corehost/cli/fxr/fx_muxer.cpp#L214
see https://github.com/dotnet/core-setup/issues/5645#issuecomment-516764531 too.
The text was updated successfully, but these errors were encountered: