0

Using dmcs directly, if I want to reference an assembly I can pass it in via the -r option, ala:

dmcs -r:System.Xml.Linq.dll whatever.cs

manos de mono uses its own build system on top of dmcs, how do I pass in such references? 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.

4

1 に答える 1

0

まず、Manos は、.cs ファイルがあるディレクトリにあるすべての .dll を自動的に参照します (つまり、.sln または makefile を使用しない限り)。

第二に、System.Xml.Linq.dll への追加の参照は必要ないと思います。AFAIR は、manos -b「OS に」存在する正しい mono インストールのおかげで表示されるはずです。したがって、例が文字通り行っていることを反映している場合、問題は Manos ビルド システム以外のどこかにあるのではないかと思います。後者の言い方は正しいかもしれませんし、間違っているかもしれませんが、どちらにしても、これ以上の詳細がなければ、両方と言います:

  • 「外部」の問題を修復する、または
  • System.Xml.Linq.dllビルドディレクトリへのコピー

役立つはずであり、コピーは短期的には間違いなく面倒ではありません;)

于 2011-08-15T20:51:17.257 に答える