compile cs files with mono?

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2010-05-22T02:29:59Z Indexed on 2010/05/22 2:40 UTC
Read the original article Hit count: 308

Filed under:
|
|
|

I am trying to compile my project with mono on linux. My cmd looks something like...

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

but much long. and i get the output

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'
...

How do i solve this?

I also tried it the other way around (below) and had the same error msg with .dll at the end of them

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 

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#