Quantcast
Channel: Category Name
Viewing all articles
Browse latest Browse all 10804

Visual Studio 2013 RC and Send to FSI

$
0
0

Earlier this week, the Release Candidate build of Visual Studio 2013 was announced.  Like the Preview build before it, the RC contains a host of new features for F# developers, including F# 3.1 language updates and improved Visual F# tooling.  You can read the details in our earlier blog post.

The RC contains one brand-new F# feature, though, which we are pleased to announce today: Send to F# Interactive.

The same solution explorer context menus used to manage assembly references in F# projects now give you the option to send those references to your FSI session.  This is often much simpler and faster than typing out a full #r command.  There are three ways to use the feature:

  • Add individual references by selecting and right-clicking on them

fsi_individual

  • Add all project references at once by right-clicking the top-level References node

fsi_allrefs

  • Add the output assembly of a project by right-clicking the project node

fsi_project

 

 

In all cases, the result is equivalent to a traditional #r FSI reference:

fsi_fsi

 

Note that once an assembly is loaded into FSI, it is locked on disk and a new version of the same assembly cannot be loaded into the session.  Make sure to reset FSI (by right clicking the window and selecting “Reset Interactive Session”) when you want to load an updated version of an assembly, or unlock an assembly file on disk.


Viewing all articles
Browse latest Browse all 10804

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>