Using C# library in an F# project?

前端 未结 1 970
星月不相逢
星月不相逢 2021-02-14 05:16

I\'m fresh to F#, but I really want to learn it. I know Python, I know C#. As a matter of fact, I\'ve got a C# library that I\'ve made myself; it\'s an wrapper for the Rdio API

1条回答
  •  青春惊慌失措
    2021-02-14 05:58

    The following code works if F# environment can find the location of Rdiosharp.dll. Usually not! So it does not work and tells you that "error FS0084: Assembly reference 'RdioSharp.dll' was not found or is invalid".

    #r "RdioSharp.dll"
    

    You can provide the exact path of this dll as in:

    #r @"c:\temp\RdioSharp.dll"
    

    or you can add its folder into search-path:

    #I @"c:\temp"
    

    0 讨论(0)
提交回复
热议问题