Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add a reference in fsharpi that has a version and public key in Mono

Tags:

mono

f#

fsi

The following #r command will execute fine on Windows

#r "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"

On Osx with Mono 3.0.6 it cant find the file even though the file is in the search path.

Im guessing that this might be to do with delay signing in Mono, can anyone confirm this or know what the best work arounds are?

like image 816
7sharp9 Avatar asked Oct 22 '22 15:10

7sharp9


1 Answers

Currently The #r reference with a fully qualified name is not supported in Mono.

There are areas in the F# code that check for the presence of Mono and revert to file only loading of references. This was due to limitations in xbuild support at the time of writing.

Now that xbuild is more mature hopefully this can be addressed.

Thanks to Don Syme for pointing me to this area

like image 118
7sharp9 Avatar answered Oct 25 '22 19:10

7sharp9