title: How do i build a project with mono via cmd line?
body: <p>I must use the commandline/terminal and i need to use gmcs and not xbuild.</p>
  
  <p>How do i compile a project? My one liner looks like this</p>
  
  <pre><code>gmcs -d:mydef -lib:my_ref_folder -debug -r:System.Web,System.Data,mysql.data -recurse:'*.cs' 
  </code></pre>
  
  <p>The problem is i get the error <code>error CS0006: cannot find metadata file</code>mysql.data'<code>. I googled and i tried</code>gacutil -i name.dll` as many suggested but after installing mysql i still got that error. I also neeed lucence.net and when i use gacutil with it i get the error</p>
  
  <pre><code># sudo gacutil -i Lucene.Net.dll
  Failure adding assembly Lucene.Net.dll to the cache: Attempt to install an assembly without a strong name
  </code></pre>
  
  <p>How do i build a project with gmcs? i tried googling examples but gmcs isnt a great keyword and i am stumpped with the man pages. -lib: doesnt work and neither does -L my_ref_folder Both dlls/references in the older are not found and i get the <code>cannot find metadata file</code> error</p>