Skip to content
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

Remove .dll from Interop.Libraries.HostPolicy for consistency with other runtime libraries #76466

Merged
merged 3 commits into from
Oct 4, 2022

Conversation

elinor-fung
Copy link
Member

Interop.Libraries.HostPolicy is only used for the library name in p/invokes.

Resolves #60080

@ghost
Copy link

ghost commented Sep 30, 2022

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

Issue Details

Interop.Libraries.HostPolicy is only used for the library name in p/invokes.

Resolves #60080

Author: elinor-fung
Assignees: -
Labels:

area-Host

Milestone: -

@jkotas
Copy link
Member

jkotas commented Oct 1, 2022

Opened #76494 on the Libraries Test Run checked coreclr windows x86 Debug crash

@@ -72,7 +72,7 @@ int main(const int argc, const pal::char_t *argv[])
}

nethost_path = get_directory(nethost_path);
nethost_path.append(MAKE_LIBNAME("nethost"));
nethost_path.append(LIB_FILE_NAME_X("nethost"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nethost_path.append(LIB_FILE_NAME_X("nethost"));
nethost_path.append(LIB_FILE_NAME_X("nethost"));

For my education - why is LIB_FILE_NAME not sufficient here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the host components have strings (pal::char_t/pal::string_t) as wchar_t/std::wstring for Windows and char/std::string for non-Windows internally and for exported APIs, so this uses LIB_FILE_NAME_X to define it according to the platform.

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
@elinor-fung
Copy link
Member Author

Failure is #76280.

@elinor-fung elinor-fung merged commit be89484 into dotnet:main Oct 4, 2022
@elinor-fung elinor-fung deleted the issue60080 branch October 4, 2022 21:09
@ghost ghost locked as resolved and limited conversation to collaborators Nov 4, 2022
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.

Consider removing ".dll" from the "const string HostPolicy = "hostpolicy.dll"
2 participants