I am trying to build an automatic download, compile & run program for a project just to make it easier for other users on mac and myself so we do not have to do everything over and over as the project progresses. I cant find anything on how to compile and run a C# monodevelop project with code when i google. Does anyone here know how it could be done?
thanks
Edit: using xbuild as mentioned below compiles the project, but i cannot seem to find a command to run the build? the only output seems to be .exe and that launches vmware when i try to run, is there som command that i add somewhere? like execute
tar -xf sources.tar.gz
cd *project*
xbuild project.sln
To build applications you can use gmcs
, to run then you can use mono
.
From a Terminal shell, you can try it out:
$ gmcs hello.cs
$ mono hello.exe
Hello, World
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With