views:

1173

answers:

2

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

How is it done?

+1  A: 

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.

Mike Brown
How could I missed this! I'm working with *VSTO* mostly...
guillermooo
+8  A: 

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]

srivatsn
Thanks! It would be great if you could also indicate some advantages/disadvantages of using Iron* over VSTA (apart from tech support).
guillermooo