如何在 .NET 应用程序中嵌入 IronPython [英] How to embed IronPython in a .NET application

查看:48
本文介绍了如何在 .NET 应用程序中嵌入 IronPython的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过嵌入 IronPython 等脚本语言在 .NET 应用程序中公开 API?

Is it possible to expose an API in a .NET application by embedding a scripting language like IronPython?

它是怎么做的?

推荐答案

IronPython 有一个托管 API,可用于从 C#\VB 应用程序执行 IronPython 脚本.

IronPython has a hosting API which can be used to execute IronPython scripts from a C#\VB application.

这是将 IronPython 嵌入到 winforms 应用程序中的一个很好的例子.请注意,自那篇文章以来,托管 API 已发生变化.这篇文章最新 API 示例

您可以在此处找到最新的规范[注意:URL截至 2010 年 9 月 7 日,抛出 404]

You can find the latest specs here [Note: URL throws a 404 as of 2010-09-07]

这篇关于如何在 .NET 应用程序中嵌入 IronPython的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆