Building and running Monodevelop solution in OS X Terminal

后端 未结 3 679
旧时难觅i
旧时难觅i 2021-02-06 06:44

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 mdto

相关标签:
3条回答
  • 2021-02-06 07:30

    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
    
    0 讨论(0)
  • 2021-02-06 07:32

    See http://monodevelop.com/Developers/Mac_Support/Building_MonoDevelop_on_OS_X

    0 讨论(0)
  • 2021-02-06 07:38

    Nowadays if you run xbuild you also will get:

    ">>> xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<"

    So, you should go for:

    msbuild Solution.sln
    
    0 讨论(0)
提交回复
热议问题