Skip to content

Commit aefa797

Browse files
committed
Append assembly name to typename for coreclr
1 parent f1f8179 commit aefa797

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clr_loader/hostfxr.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ def __init__(self, runtime_config, dotnet_root=None):
3535
self._load_func = _get_load_func(self._dll, self._handle)
3636

3737
def get_callable(self, assembly_path, typename, function):
38+
# Append assembly name to typename
39+
assembly_name, _ = os.path.splitext(os.path.basename(assembly_path))
40+
typename = f"{typename}, {assembly_name}"
41+
3842
delegate_ptr = ffi.new("void**")
3943
res = self._load_func(
4044
encode(assembly_path),

0 commit comments

Comments
 (0)