Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

F# interactive: Reference a project in currently open solution

I would like to use the F# interactive console with the projects in the currently open solution in Visual Studio 2010. Is there a quick and easy way to add a reference in the F# interactive console to reference projects in the currently open solution?

like image 884
Russell Avatar asked Jun 06 '10 02:06

Russell


1 Answers

I've got lines like this at the top of my .fs file:

#if INTERACTIVE #r @"C:\path\to\some.dll" #I @"C:\Users\bford\path\to\a\project\in\this\solution\bin\Debug" #r "Project.name" #endif 

Alt-Enter now drops me into fsi with all the required stuff loaded

like image 105
Ben Ford Avatar answered Sep 27 '22 19:09

Ben Ford