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

문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top