R – Add a Reference Via F#’s Interactive Window

%ff#-interactive

Is it possible to add a reference to a .NET library via F#'s interactive window? For example:

> open System.Xml.Linq;;

  open System.Xml.Linq;;
  ----------------^^^^

stdin(2,17): error FS0039: The namespace 'Linq' is not defined.
> 

Best Answer

This seems to work:

> #r "System.Xml.Linq" ;;
Related Topic