C # Mono on mac - compiling and running another project with code

I’m trying to create an automatic download, compilation and launch of a program for a project to make it easier for other Mac users and me, so we don’t have to do it all over and over as the project progresses. I can not find anything about how to compile and run a monodevelop C # project with code when I google. Does anyone know how to do this?

thanks

Edit: using xbuild as below compiles the project, but I can't find a command to start the build? the only way out seems to be .exe and it starts vmware when I try to start, is there a som command that I am adding somewhere? for example run

tar -xf sources.tar.gz cd *project* xbuild project.sln 
+4
source share
2 answers

The full answer, of course, depends on the appropriate sources and the build system used. For mono related sources, you can often do the following:

 tar -xf sources.tar.gz cd sources ./configure make sudo make install 

If you have a .sln and csproj file, you need to use mdtool or xbuild . mdtool comes with monodevelop, xbuild comes with mono. Both understand the visual studio solution and csproj files and will build them. xbuild a mono equivalent to msbuild .

+4
source

To create applications, you can use gmcs to run, you can use mono . From the terminal shell you can try:

 $ gmcs hello.cs $ mono hello.exe Hello, World 
+4
source

All Articles