| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…rios (COM, C++/CLI, custom component host) could try to load coreclr from CWD There is a fallback for apps with no .deps.json where the host will consider the app directory for loading coreclr. In component hosting scenarios, we do not have an app path / directory. We were incorrectly going down the path of looking for coreclr next to the empty app directory, which resulted in looking in the current directory. This change skips that path for libhost scenarios. It also adds checks that the paths we determine for loading coreclr, hostpolicy, and hostfxr are absolute.
…-merge-8.0-2025-06-10-1311
There was a problem hiding this comment.
This PR merges internal commits for release 8.0, enforcing absolute-path loading in various host resolvers, refining dependency resolution logic, and extending test utilities with new working-directory-ignorance tests.
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file| File | Description |
|---|---|
| src/native/corehost/hostpolicy/standalone/coreclr_resolver.cpp | Add absolute-path check before load_library |
| src/native/corehost/hostpolicy/deps_resolver.cpp | Skip app-deps probing when in libhost mode |
| src/native/corehost/fxr_resolver.h | Add absolute-path check for hostfxr library |
| src/native/corehost/fxr/standalone/hostpolicy_resolver.cpp | Add absolute-path check for hostpolicy library |
| src/native/corehost/apphost/standalone/hostfxr_resolver.cpp | Add absolute-path check before setting status |
| src/installer/tests/TestUtils/TestArtifact.cs | Introduce Create factory method for test artifacts |
| src/installer/tests/HostActivation.Tests/NativeHosting/NativeHostingResultExtensions.cs | Rename extension class and add new assertions |
| src/installer/tests/HostActivation.Tests/NativeHosting/LoadAssemblyAndGetFunctionPointer.cs | Add IgnoreWorkingDirectory test |
| src/installer/tests/HostActivation.Tests/NativeHosting/Ijwhost.cs | Add LoadLibrary_IgnoreWorkingDirectory test |
| src/installer/tests/HostActivation.Tests/NativeHosting/Comhost.cs | Add ActivateClass_IgnoreWorkingDirectory test |
src/native/corehost/hostpolicy/standalone/coreclr_resolver.cpp:17
if (!pal::is_path_rooted(coreclr_dll_path))
src/native/corehost/fxr_resolver.h:48
if (!pal::is_path_rooted(fxr_path))
src/native/corehost/fxr/standalone/hostpolicy_resolver.cpp:184
if (!pal::is_path_rooted(host_path))
src/native/corehost/apphost/standalone/hostfxr_resolver.cpp:41
else if (!pal::is_path_rooted(m_fxr_path))
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
No description provided.