clr-loader
clr-loader copied to clipboard
Loader for different .NET runtimes
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.1.7. Release notes Sourced from actions/download-artifact's releases. v4.1.7 What's Changed Update @actions/artifact dependency by @bethanyj28 in actions/download-artifact#325 Full Changelog: https://github.com/actions/download-artifact/compare/v4.1.6...v4.1.7 v4.1.6 What's Changed updating @actions/artifact...
See https://github.com/pythonnet/clr-loader/issues/75. Perhaps not very elegant, but it does print the detail of errors in a kind of ugly way...
When using: ```python import clr_loader clr_loader.get_coreclr() ``` If the loading fails, we merely get this error: ``` RuntimeError: Could not find a suitable hostfxr library in /usr/local/share/dotnet ``` This is...
I have mapped a **network drive** (assigned drive letter **M**) on my local machine, created a virtual environment on it and installed all the supporting libraries that are required to...
Cf. https://github.com/pythonnet/pythonnet/issues/2396
With this, loading a specific dotnet runtime with pythonnet is as simple as calling `pythonnet.load("coreclr", runtime_version="9.0")`, without needing to create a `runtimeconfig.json` or a `DotnetCoreRuntimeSpec` object
Same as for pythonnet: - [ ] Need to update the image, macos-13 is out - [ ] Have to install via homebrew if we want to test on arm...
If the win32 API SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_USER_DIRS) is used, the default clr_loader doesn't work. ``` import ctypes from ctypes import wintypes dll = ctypes.CDLL("Kernel32.dll") dll.SetDefaultDllDirectories.argtypes=[wintypes.DWORD] LOAD_LIBRARY_SEARCH_USER_DIRS = 0x00000400 dll.SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_USER_DIRS) import clr #