【发布时间】:2010-05-22 02:29:59
【问题描述】:
我正在尝试在 linux 上使用 mono 编译我的项目。我的 cmd 看起来像...
gmcs Pages/UserProfile.cs Properties/AssemblyInfo.cs queues.cs watch_editor.cs Class1.cs -define:USE_SQLITE -r:System -r:System.Collections -r:System.Collections.Generic -r:System.Collections.ObjectModel -r:System.Collections.Specialized -r:System.Configuration
但是很长。我得到了输出
error CS0006: cannot find metadata file `System.Collections'
error CS0006: cannot find metadata file `System.Collections.Generic'
error CS0006: cannot find metadata file `System.Collections.ObjectModel'
...
我该如何解决?
我也尝试了另一种方式(如下),并且在它们的末尾有相同的错误消息,带有 .dll
gmcs -define:USE_SQLITE -r:System.dll -r:System.Collections.dll -r:System.Web.UI.WebControls CommentCenter.cs cookies.cs db.cs Default.aspx.cs
【问题讨论】: