views:

10

answers:

1

I'm trying to write a Visual Studio 2010 Extension to show an IronPython shell for debugging C# projects. So obviously I have a reference to IronPython.dll (and a bunch of others). I'm referencing IronPython 2.0.1 here.

My project compiles fine. When I debug it, a new instance of VS is started and all. But when I run the addin command, I get a System.FileNotFoundException for the IronPython.dll.

I did make sure the DLL is in the project output directory (bin/Debug). I'm guessing this is being run under another context, so the path resolution or whatever doesn't pick this up. Any ideas on what to do?

+1  A: 

Yes, that won't work. The probing path for devenv.exe (Visual Studio) is not going to include the current project build directory. The common7\ide\devenv.exe.config on my machine adds the PublicAssemblies and PrivateAssemblies subdirectories in common7\ide to the probing path. You could copy your assemblies there.

Hans Passant
Thanks, that will probably do for the moment. I'll have to come up with something else for production, though - if this tool works out, others might want it as a poor mans substitute for LINQ in the Immediate Window...
Daren Thomas