Click here to Skip to main content
15,891,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a solution with few projects under it(5 projects).I have to create an template with the existing solution.
I referred to the article -

[https://msdn.microsoft.com/en-us/library/xkh1wxd8(v=vs.140).aspx][1]

When i try to add multiple projects in the template it fails.I am able to add only one project to the project template.

What I have tried:

Select Solution->File->Export Templates->
When i try to add multiple projects in the template it fails.I am able to select and add only one project to the project template.

I need to add all 5 project in solution for creating template.What do i do?
Posted
Updated 29-Feb-16 0:33am

1 solution

It is PROJECT template, not SOLUTION template, but you were close:
How to: Create Multi-Project Templates[^]

In short:
To create a multi-project template
1. Create the projects to include in the multi-project template.
2. Create .vstemplate files for every project. For more information, see How to: Create Project Templates.
3. Create a root .vstemplate file that to contain the metadata for the multi-project template. For more information, see the first example in the following section.
4. Select the files and folders to include in your template, right-click the selection, click Send To, and then click Compressed (zipped) Folder. The files and folders are compressed into a .zip file.
5. Put the .zip template file in the Visual Studio project template directory. By default, this directory is \My Documents\Visual Studio Version\Templates\ProjectTemplates\


Good luck!
 
Share this answer
 
Comments
Member 1097736 1-Mar-16 6:25am    
After creating the template for individual project.I find error in every .cs files, where $ is added in namespace created.
http://www.codeproject.com/Questions/1082032/Why-am-i-facing-error-in-cs-files-after-creating-a

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900