-
|
I would like to run the following code in fsi let rsaKey = System.Security.Cryptography.RSA.Create()But it complains with RSA is not defined. According to docs here: What can I do? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Ok using |
Beta Was this translation helpful? Give feedback.
-
|
You have to #r "System.Security.Cryptography";; in your FSI session to get access to the types and members from that DLL: I'm not sure this is intended, though - I thought for a program targeting net7.0 (which I thought FSI was suppose to simulate?) S.S.C would be part of the default set of opens. @vzarytovskii what should the intended programming environment of FSI be? |
Beta Was this translation helpful? Give feedback.
-
|
As an addition, I have searched my disk for where that file might be and one location was Though my search isn't exhaustive. |
Beta Was this translation helpful? Give feedback.

You have to #r "System.Security.Cryptography";; in your FSI session to get access to the types and members from that DLL:
I'm not sure this is intended, though - I thought for a program targeting net7.0 (which I thought FSI was suppose to simulate?) S.S.C would be part of the default set of opens. @vzarytovskii what should the intended programming environment of FSI be?