I want to use a dll from C# in my python script, using clr and AddReference
.
After importing clr, I can't use AddReference
attribute (screenshot). But when I do print( dir(clr))
, it shows me the attribute AddReference
(screenshot).
I tried to Install .NET on my notebook:
hier a screenshot after running my code enter image description here
- add new folder
pip uninstall clr
thenpip install pythonnet