Ask coding questions

← Back to all posts
How can I add a reference to a standard .Net assembly in a Repl?
hawsr

How can I add a reference to a standard .Net assembly in a Repl? I am specifically trying to use

Namespace: System.Device.Location
Assembly: System.Device.dll

Code:

Error:

Voters
ChloeKay1
EstebanGuzmn
solly_ucko
suzannesoy
hawsr
Comments
hotnewtop
solly_ucko

You can run the compiler manually: e.g. mcs -out:main.exe -reference:System.Device main.cs, then run the executable using mono main.exe. See also https://stackoverflow.com/questions/8264783/how-to-reference-these-packages-with-mono-in-order-to-compile.

SixBeeps

Try adding the DLL to the file system