开发者

Build .NET DLLs from Python code?

开发者 https://www.devze.com 2023-01-06 05:09 出处:网络
How do I make 开发者_如何学编程a DLL (.NET) written in python code (IronPython)?You cannot create a standard .NET .dll from IronPython code (.dll that can be used directly from C# or VB).

How do I make 开发者_如何学编程a DLL (.NET) written in python code (IronPython)?


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.


You can probably use ironpycompiler, using examples in http://pythonhosted.org//ironpycompiler/html-en/command-line.html. It requires installations of both IronPython and of CPython (the regular Python).


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

0

精彩评论

暂无评论...
验证码 换一张
取 消