【发布时间】:2011-03-11 17:37:43
【问题描述】:
如何制作用 python 代码 (IronPython) 编写的 DLL (.NET)?
【问题讨论】:
标签: python dll build ironpython compilation
如何制作用 python 代码 (IronPython) 编写的 DLL (.NET)?
【问题讨论】:
标签: python dll build ironpython compilation
您无法从 IronPython 代码创建标准 .NET .dll(可直接从 C# 或 VB 使用的.dll)。
pyc.py 生成只能由 IronPython 使用的 .dll - 使用 Reflector 检查此类 .dll,您就会明白为什么。
【讨论】:
您可能可以使用ironpycompiler,使用http://pythonhosted.org//ironpycompiler/html-en/command-line.html 中的示例。它需要安装 IronPython 和 CPython(常规 Python)。
【讨论】:
您可以在C:\Program Files\[IronPython Program Directory]\Tools\Scripts 使用脚本。
【讨论】: