Skip to content

Conversation

@elinor-fung
Copy link
Member

@elinor-fung elinor-fung commented Oct 16, 2024

The test wasn't saving the modified runtime config, so the app didn't actually set the DllImportResolver. The app was also using the incorrect path in its implementation. Whether or not it is needed for the test to run properly is dependent on the platform (and how it handles trying to load an already loaded native binary). I found this when trying to run the host tests on linux-musl-x64.

Contributes to #77800.

cc @dotnet/appmodel @AaronRobinsonMSFT

@elinor-fung elinor-fung changed the title Fix HostApiInvokerApp setting DllImportResolver for hostfxr Fix HostApiInvokerApp test app setting DllImportResolver for hostfxr Oct 16, 2024
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

@elinor-fung elinor-fung merged commit 43813ac into dotnet:main Oct 17, 2024
@elinor-fung elinor-fung deleted the host-tests-dllimportresolver branch October 17, 2024 17:07
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants