Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building and running Monodevelop solution in OS X Terminal

I'd like to build and run a Monodevelop solution from the OS X Terminal. What are the appropriate tools/commands to do this?

I tried running mdtools build from the directory containing MySolution.sln. This results in -bash: mdtools: command not found. Where can I download and install mdtools? (if this is the right way to go).

I built the solution from the IDE. Then I tried to run it from bin/Debug with mySolution.exe. This resulted in the error message -bash: mySolution.exe: command not found (even though ls shows it exists).

like image 502
SundayMonday Avatar asked Dec 12 '11 20:12

SundayMonday


1 Answers

On a Mac, mdtool is not in the PATH, but can be found inside the MD app bundle, for example

/Applications/MonoDevelop.app/Contents/MacOS/mdtool build MySolution.sln

Alternatively you could try xbuild, which is installed as part of Mono, and is in PATH. This is an implementation of MSBuild. Unfortunately it can't yet handle all the custom project types that mdtool can handle.

xbuild MySolution.sln
like image 59
Mikayla Hutchinson Avatar answered Oct 13 '22 00:10

Mikayla Hutchinson