How to embed IronPython in a .NET application

后端 未结 2 1221
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-20 21:19

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

How is it done?

相关标签:
2条回答
  • 2020-12-20 21:39

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

    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

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

    0 讨论(0)
  • 2020-12-20 22:00

    I haven't used it personally, but you should look at Visual Studio Tools for Applications

    I'm not sure if Iron Python is supported as a language for it or not, but that would be the easiest path to enable your application to be programmable.

    0 讨论(0)
提交回复
热议问题