I am new to Python. I developed a C# library .Net Standard 2.0 and i tried to load this in Python using import clr by installing python .net package. The problem is that if I change the version of .net to 1.4 or lower then it works otherwise it show ModuleNotFound Error. Does anyone have idea of dealing with this problem? I don't want to change the version of my .net standard.
import clr
import sys
assemblydir = r"C:\\Python"
assemblypath = r"C:\\Python\Mylib.dll"
sys.path.append(assemblydir)
clr.FindAssembly(assemblypath)
clr.AddReference("Mylib")
from Mylib import Animal
a = Animal()
print (a.Get())