views:

119

answers:

2

I know how to reference an existing .dll to IronPython, but is there any way to add my project as a reference like I can between Visual Studio projects?

Or is it best practice to create a separate class library?

+1  A: 

You can't add reference to a project since it's a Visual Studio thing.

I suggest that during the development process, call import (IronPython) or require (IronRuby) with the full path of your project assembly like c:\dev\MyProject\bin\Debug\MyProject.dll.

Shay Friedman
Your IronRuby bias is showing :). In IronPython you can't `import` by path; you need to `clr.AddReference` first and then `import` the class.
Jeff Hardy
Yep, thanks for that. Was looking for an easier way to get IronRuby to know my classes. I think this is something you have to plan for from the beginning.
Jason
+1  A: 

I know you can do that using SharpDevelop. Kinda like this:

http://i42.tinypic.com/hwb8z9.gif

jcao219