6

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

How is it done?

2 Answers 2

6

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]

Sign up to request clarification or add additional context in comments.

1 Comment

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

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.