且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否有可能到IronPython的asp.net网页表单关联到一个dll文件?

更新时间:2023-01-06 22:56:24

它不能被目前只有IronPython的完成。通过 pyc.py 创建的.dll文件无法使用。当您使用反射检查 - 你没有找到所需的.NET类

It cannot be currently done with just IronPython. The .dll file created by pyc.py cannot be used. When you check it with Reflector - you don't find the necessary .NET classes.

我使用的方法是建立在C#存根创建IronPython的引擎,并运行里面的脚本文件。请参见关于如何使嵌入IronPython的成C#这篇文章

The option I use is to create a stub in C# that creates IronPython engine and run the script file inside it. See this article for how to embedd IronPython into C#.