Cannot add python assembly reference for IronPython DLR app
-
Wednesday, April 04, 2012 1:32 PM
Hello,
I received the following error when attempting to add a reference using Visual Studio for a C# IronPython DLR app:
[A reference to 'NpyAccessLib.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.]
The complete path to the dll was omitted. The assembly is part of Numpy for .NET. A different assembly was added successfully.
Any suggestions?
williamj
williamj
All Replies
-
Wednesday, April 04, 2012 4:53 PM
Hi williamj,
the file is a native DLL which means you can't add it to a .NET project via Add Reference...
you can use it via DllImport
see http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.dllimportattribute.aspx
Regards
Sophia
- Marked As Answer by williamj8 Monday, April 09, 2012 1:40 PM
-
Monday, April 09, 2012 1:42 PM
Sophia:
Thanks for your reply.
How did you know the assembly was native?
And, I am not sure which native methods to implement in managed code.
Regards,
William
williamj

