如何嵌入IronPython的在.NET应用程序应用程序、IronPython、NET

2023-09-03 01:29:30 作者:冷清一笑倾所爱°

是否有可能通过嵌入的脚本语言,像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.

这是里面的一个WinForms嵌入IronPython的一个很好的例子app.Note该托管的API,因为该职位已经改变。 这个帖子展示了一个例子最新的API

This is a good example of embedding IronPython inside a winforms app.Note that the hosting APIs have changed since that post. This post shows an example of the latest API

您可以找到最新的规格这里 [注:URL抛出404为2010-09-07]

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