pythonnet / clr-loader

Loader for different .NET runtimes
MIT License
32 stars 23 forks source link

get_coreclr throws exception "TypeError: get_coreclr() takes 0 positional arguments but 1 was given" in version 0.2.3. Works in version 0.1.7 #35

Closed DareDevilDenis closed 2 years ago

DareDevilDenis commented 2 years ago

The following code works with clr-loader 0.1.7

from clr_loader import get_coreclr

runtime  = get_coreclr('MyApplication.runtimeconfig.json')
print('Success')

With clr-loader 0.2.3 it throws exception:

TypeError: get_coreclr() takes 0 positional arguments but 1 was given

filmor commented 2 years ago

This is intentional: https://github.com/pythonnet/pythonnet/discussions/1837#discussioncomment-3706092

DareDevilDenis commented 2 years ago

Ok, thanks for the quick response