Skip to content

GetExecutingDLLDirectory fails when loaded via LoadFromStream #3

@Senior-Moon-Moon

Description

@Senior-Moon-Moon

The calls to GetExecutingDLLDirectory fail with the following exception:

System.ArgumentNullException: Value cannot be null. (Parameter 'path')
   at System.IO.Directory.GetParent(String path)

when the reloaded.Assembler is loaded with LoadFromStream

I am using LoadFromStream to prevent file locking to allow me to compile new versions and reload them.

Is it possible to rely on the current AssemblyLoadContext to find the given DLL before defaulting to the current method?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions