Bug 14204 - Enhancement: Custom project / item templates
Summary: Enhancement: Custom project / item templates
Status: RESOLVED ANSWERED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 4.1.8
Hardware: Macintosh Mac OS
: Low enhancement
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-08-23 05:39 UTC by kissling
Modified: 2015-08-27 06:50 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description kissling 2013-08-23 05:39:06 UTC
While Visual Studio provides support for custom project and item templates, such support does not seem to be available in Xamarin Studio.

http://msdn.microsoft.com/en-us/library/vstudio/y3kkate1(v=vs.100).aspx

There exist multiple locations where Xamarin Studio already stores internally used templates. These can be edited and properly work after editing. However, this does not allow creation of new project and item templates.

The location of existing templates that can be edited is
/Applications/Xamarin Studio.app/Contents/MacOS/lib/monodevelop
Start a search for *.xft.xml to find the templates.

There doesn't seem to be documentation about the format used in the templates, but it is relatively easy to understand what tags have to be used.


Note that Code Templates for snippets are available in Xamarin Studio preferences. However, there doesn't seem to be a mechanism currently for project or file templates.
Comment 1 kissling 2013-08-23 05:50:50 UTC
If someone finds a way to change the relative path of the project by hacking the templates, feel free to share :-)
Comment 2 Mikayla Hutchinson [MSFT] 2013-08-23 12:50:28 UTC
You can create addins that add templates, though ironically there's no template for an addin that adds templates.

Here's an example: https://github.com/mono/monodevelop/blob/master/extras/OpenOfficeSamples/OpenOfficeSamples.addin.xml
Here's a guide to creating an simple addin: http://monodevelop.com/Developers/Articles/Creating_a_Simple_Add-in

Though I'd now recommend using the "Addin Maker" addin which is available in the addin manager.