Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 mcs 从命令行构建单个 cs 文件。我在 c# 代码中使用了一个外部库:
using SomeLib
但是,我不知道如何为 mcs 指定所需的库。如何解决此错误?
The solution was to use gmcs and pass the library using the r specifier as follows:
gmcs
gmcs filename.cs -r:libthirdparty