title: How do I build a C# file through Mono on Linux command line?
body: <p>I wrote a simple Hello World program in C# using Visual Studio 2013. I tried to compile it on the command line in Linux using:</p>
  
  <pre><code>mono --aot test.cs
  </code></pre>
  
  <p>However when I do that, I get the error:</p>
  
  <pre><code>Cannot open assembly 'test.cs': File does not contain a valid CIL image.
  </code></pre>
  
  <p>The file is just a typical C# console application using the default template that Visual Studio gives you. </p>