views:

79

answers:

2

How do I make a DLL (.NET) written in python code (IronPython)?

A: 

You can use the script at C:\Program Files\[IronPython Program Directory]\Tools\Scripts.

jcao219
The question is if I can compile them into portable DLLs
Shimmy
You mean DLLs that can be used from C#? I don't think that's possible. I could be wrong.
jcao219
Yes, that's what I meant. but I meant it should be attached to the project, not to be called with <DllImport> or other tough way.
Shimmy
A: 

You cannot create a standard .NET .dll from IronPython code (.dll that can be used directly from C# or VB).

pyc.py produces .dll that can be used only by IronPython - check such .dll with Reflector and you will understand why.

Lukas Cenovsky