Replies: 2 comments 2 replies
-
.NET and .NET Framework are binary incompatible with each other. You cannot use them both in the same process. Choose one or the other for your project and stick with the choice.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. My concern was for Point No 2. Where i was getting the error that I posted above. I created a fresh project and i am getting this error. I have donwloaded the latest iron python msi and installed in my laptop. and i am getting this error Request some help on this |
Beta Was this translation helpful? Give feedback.
-
Hi,
i have a created a dll in .Net using VS22
namespace NewTest
{
public class Class1
{
public int Get_sum(int x, int y)
{
return x + y;
}
}
}
i have installed ironPython 3.4
When i tried importing the dll using clr.AddReference it is giving error.
python code ----->
import clr
import os
import sys
import timeit
sys.path.append(os.getcwd())
#print(sys.path)
clr.AddReference("NewTest.dll")
i am getting error as below
Traceback (most recent call last): File "callcsharpdll.py", line 7, in FileNotFoundError: [Errno 2] Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Please suggest
Beta Was this translation helpful? Give feedback.
All reactions