How can you use Mono's mcs to compile and run a csproj file?

c#, gmcs, mono

Solution

If you don't want to use MonoDevelop and want to use the command-line, you can use xbuild. xbuild is the Mono equivalent of MSBuild.

xbuild /p:Configuration=Release HelloWorld.csproj

Problem

I'm a Unix guy who needs to try and compile some C# code for work. I've downloaded Mono for Mac, and the mcs command line tool. There's a csproj file attached to this library which contains XML with all of the files I need to compile. Can Mono/mcs read this csproj file and generate a DLL from it?

Original source