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

StackOverflow https://stackoverflow.com/questions/15349265

  •  23-03-2022
  •  | 
  •  

Domanda

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?

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top