Project templates RRS feed

  • Question

  • User9938 posted


    I was wondering if there are any documentation on how to write project templates for Xamarin Studio? Visual Studio now uses the VSIX format which lets you bundle multiple templates into a simple extension, which you can install (and keep updated) using the Visual Studio Gallery and Extension Manager. Is there anything similar for Xamarin Studio?

    We have 9 templates that we'd love to explore if we could get into Xamarin Studio as well.


    Thursday, May 2, 2013 8:09 AM

All replies

  • User37 posted

    Templates can be easily provided by add-ins. Which kind of templates are those? For which kind of projects?

    Thursday, May 2, 2013 11:32 AM
  • User9938 posted


    It's a couple of web project and console projects. Any documentation on how to create these?

    Thursday, May 2, 2013 12:00 PM
  • User37 posted

    Unfortunately there isn't much documentation about this. You can take a look at some of the templates included in MonoDevelop, for example:


    This is a set of templates for creating OpenOffice projects.

    In fact, what you'll find in that folder is an add-in that provides a set of templates. Templates must always be registered by add-ins. Add-ins, however, can be something as simple as an xml file. The file OpenOfficeSamples.addin.xml is what defines the add-in.

    Once you have the templates and the add-in that registers them, you can just copy the files to MD's add-in folder[1] to try them.

    You can also create an add-in package to distribute them, using the mdtool[2] command. For example:

    mdtool setup pack OpenOfficeSamples.addin.xml

    This will generate a file with the extension mpack. You can install this .mpack using the "Install from File" button in the add-in manager, or you can publish this package in an add-in repository. This document has a more general description of how to publish add-ins:


    [1] The location of the add-in folder is:
    On Mac: ~/Library/Application Support/XamarinStudio-4.0/LocalInstall/Addins
    On Windows: C:\Users\\AppData\Local\XamarinStudio-4.0\LocalInstall\Addins

    [2] You'll find mdtool in the installation directory of MonoDevelop/Xamarin Studio.
    On Mac: /Applications/Xamarin Studio.app/Contents/MacOS
    On Windows: C:\Program Files\Xamarin Studio\bin

    Thursday, May 2, 2013 1:37 PM
  • User32870 posted

    @LluisSanchez: Could you provide another example, the OpenOfficeSamples link does not work (anymore).

    Wednesday, March 30, 2016 8:17 AM