Welcome to MSDN Blogs Sign in | Join | Help

DLR Hosting API : How to create a ScriptRuntime object without using App.Config files using language specific hosting API

This previous post demonstrates the use of App.Config files to create script runtimes to host dynamic languages in an application. It is also possible to create runtimes without using a config file.

The API to create a runtime and a python engine without using a config file is

ScriptRuntime runtime = IronPython.Hosting.Python.CreateRuntime();

A reference to the IronPython assemblies – IronPython.dll and IronPython.Modules.dll are needed for this call to work. The previous sample already has the proper references in place and this call would automatically work in that project.

Published Sunday, September 14, 2008 4:39 PM by seshadripv

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: DLR Hosting API : How to create a ScriptRuntime object without using App.Config files using language specific hosting API

Greatly written indeed… I really enjoyed your article and found it to be very informative, keep up the good work, I’ll be coming back to read any of your future articles..

Sunday, July 19, 2009 12:54 AM by steroids

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker