从 Python 代码构建 .NET DLL?

发布于 2024-09-08 07:55:56 字数 51 浏览 1 评论 0原文

如何制作用 python 代码 (IronPython) 编写的 DLL (.NET)?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

自找没趣 2024-09-15 07:55:56

您无法从 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.

别把无礼当个性 2024-09-15 07:55:56

您可以使用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).

沙与沫 2024-09-15 07:55:56

您可以使用位于 C:\Program Files\[IronPython Program Directory]\Tools\Scripts 的脚本。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文