Repository navigation
Commit 87bf48c
fix: load .NET assemblies when running on .NET 9+
GitHub-hosted runners now ship .NET 8, 9 and 10. clr_loader 0.2.x (used
with pythonnet 3.0.x, e.g. on Python 3.9) picks the runtime by string
sort, so it selects .NET 9. On .NET 9+, pythonnet 3.0.x's
clr.AddReference("<abs path>.dll") parses the path as an assembly name
and throws FileNotFoundException before its full-path fallback runs. The
error was swallowed, so imports failed with
"No module named 'Microsoft.Azure'".
Pass the path without the ".dll" suffix so pythonnet probes and loads
"<path>.dll" directly, which works on .NET 8, 9 and 10 with pythonnet
3.0.x and 3.1.x.
Also pin the e2e matrix to Python 3.13 instead of '3.x', which now
resolves to 3.14 and is outside requires-python (<3.14).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent d72a73c commit 87bf48c
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | | - | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
0 commit comments