AttributeError: module 'clr' has no attribute 'AddReferenceToFileAndPath'

Answered

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
0
1 comment

Hi,

Do you have the same problem if you run this script from the command line (outside of PyCharm) using the same interpreter?

0

Please sign in to leave a comment.