You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Importing from DLL works only when namespace != assembly name #2418
ImportError: cannot import name 'Calculator' from 'CalcTest' (unknown location)
Following the tutorial How To Call A Dynamic Library I changed the namespace in C# to CalcTestNS, recompiled the project and updated the import in Python:
fromCalcTestNSimportCalculator
and it worked.
In the tutorial it is not mentioned that the namespace and the assembly cannot have the same name. It would be a great time-saver to document this.
Activity
[-]i[/-][+]Importing from DLL works only when namespace != assembly name[/+]