简体   繁体   English

你如何表示你想用 manos de mono 服务器引用一个程序集?

[英]How do you signal you want to reference an assemby with manos de mono server?

Using dmcs directly, if I want to reference an assembly I can pass it in via the -r option, ala:直接使用 dmcs,如果我想引用一个程序集,我可以通过 -r 选项传入它,ala:

dmcs -r:System.Xml.Linq.dll whatever.cs dmcs -r:System.Xml.Linq.dll 不管什么.cs

manos de mono uses its own build system on top of dmcs, how do I pass in such references? manos de mono 在 dmcs 之上使用自己的构建系统,我如何传递此类引用? Seems like it should be easy/obvious but I haven't found any documentation on it so I'm asking here prior to ripping through the manos code.似乎它应该很容易/显而易见,但我还没有找到任何关于它的文档,所以我在翻阅 manos 代码之前在这里询问。

Firstly, Manos automatically references all.dlls found in the directory the.cs files are (unless you use.sln or makefile, that is).首先,Manos 会自动引用在.cs 文件所在目录中找到的所有.dll(除非您使用.sln 或makefile,即)。

Secondly, I don't think additional reference to System.Xml.Linq.dll is needed, AFAIR it should be visible to manos -b thanks to correct mono installation present "in the OS" -- so if the example reflects what you're doing literally, I would suspect the problem lies somewhere outside Manos build system. Secondly, I don't think additional reference to System.Xml.Linq.dll is needed, AFAIR it should be visible to manos -b thanks to correct mono installation present "in the OS" -- so if the example reflects what you'从字面上看,我怀疑问题出在 Manos 构建系统之外的某个地方。 I may be right or wrong saying the latter, but either way, given no further details I'd say both:我说后者可能是对或错,但无论哪种方式,鉴于没有进一步的细节,我会说两者:

  • repairing the "external" problem, or修复“外部”问题,或
  • copying System.Xml.Linq.dll to the build directorySystem.Xml.Linq.dll复制到构建目录

should help, and copying is definitely less cumbersome on the short term;)应该会有所帮助,而且短期内复制肯定不会那么麻烦;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM