开发者

Add a Reference Via F#'s Interactive Window

开发者 https://www.devze.com 2022-12-19 01:49 出处:网络
Is 开发者_高级运维it possible to add a reference to a .NET library via F#\'s interactive window?For example:

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.
> 


This seems to work:

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


For the people looking to import a non .NET reference. You can do that with:

#r "./path/to/my.dll"

See also this answer.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号