Skip to content

Unloading NativeAOT compiled dll? #79348

@Sardelka9515

Description

@Sardelka9515

Greetings.

NativeAOT has been a fantastic deployment experience.
I can load a natively compiled dll in my C++ app and use GetProcAddress to get the exported function without any problems. However, once I called that function, the dll can no longer be unloaded. Despite successful call to FreeLibrary, the module still remains in the process.
I've tried some hacky approaches, which unfortunately did not work.

Is there any way to unload the NativeAOT compiled dll?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-NativeAOT-coreclrquestionAnswer questions and provide assistance, not an issue with source code or documentation.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions