从 Python 代码构建 .NET DLL?
如何制作用 python 代码 (IronPython) 编写的 DLL (.NET)?
How do I make a DLL (.NET) written in python code (IronPython)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
如何制作用 python 代码 (IronPython) 编写的 DLL (.NET)?
How do I make a DLL (.NET) written in python code (IronPython)?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
您无法从 IronPython 代码创建标准 .NET .dll(可直接从 C# 或 VB 使用的 .dll)。
pyc.py
生成只能由 IronPython 使用的 .dll - 使用 Reflector 检查此类 .dll,您就会明白原因。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.您可以使用ironpycompiler,使用 http://pythonhosted.org// 中的示例Ironpycompiler/html-en/command-line.html。它需要安装 IronPython 和 CPython(常规 Python)。
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).
您可以使用位于
C:\Program Files\[IronPython Program Directory]\Tools\Scripts
的脚本。You can use the script at
C:\Program Files\[IronPython Program Directory]\Tools\Scripts
.