Have you tried the '--use' flag? You can set FSI flags in the F# Options for Visual Studio. I haven't personally tried it from VS 2010, but it works well on the command line. The full syntax is:

1
2
--use:path\to\somefile.fsx

This will get executed when FSI first starts up. However, I'm not sure about FSI restarts inside the IDE.

By on 6/16/2009 7:11 AM ()

That's what I was looking for, thanks. I didn't realize you could set command-line args inside VS2010.

I set F# Interactive options to:

1
--lib:"C:\Users\James\Documents\Visual Studio 10\Projects\fsi" --optimize --use:setup.fsx

And then add whatever I need to the setup.fsx file.

Restarting fsi does the right thing.

By on 6/16/2009 9:58 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper