AttributeError: module 'clr' has no attribute 'AddReferenceToFileAndPath'
已回答
I am trying to read C# DLL from PyCharm.
I am able to access the dll using IronPython from IronPython Console.
Now, I want to access the dll in PyCharm and develop a script.
How can I do this ?
import clr
clr.AddReferenceToFileAndPath(r"C:Calculation.dll")
this is throwing AttributeError: module 'clr' has no attribute 'AddReferenceToFileAndPath' Error
请先登录再写评论。
Hi,
Do you have the same problem if you run this script from the command line (outside of PyCharm) using the same interpreter?