We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c24c89 commit 15ede71Copy full SHA for 15ede71
clr_loader/ffi/__init__.py
@@ -16,6 +16,7 @@
16
17
def load_hostfxr(dotnet_root: Path):
18
hostfxr_name = _get_dll_name("hostfxr")
19
+ dotnet_root = dotnet_root.absolute()
20
21
# This will fail as soon as .NET hits version 10, but hopefully by then
22
# we'll have a more robust way of finding the libhostfxr
@@ -28,6 +29,11 @@ def load_hostfxr(dotnet_root: Path):
28
29
except Exception:
30
pass
31
32
+ try:
33
+ return ffi.dlopen(str(dotnet_root / hostfxr_name))
34
+ except Exception:
35
+ pass
36
+
37
raise RuntimeError(f"Could not find a suitable hostfxr library in {dotnet_root}")
38
39
0 commit comments