Create visual studio solution template - multiple projects
Asked Answered
T

1

7

I'm stuck on this tutorial for creating a multi-project visual studio template. I'm specifically stuck on this line:

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.

I did the following steps:

  1. Create 2 projects. (MyProj.Web and MyProj.Service)
  2. Reference MyProj.Service in MyProj.Web.
  3. Export both. They are now in a .zip file.

What do I do from here?

My intentions are: Make solution folders where some dlls will be (DI, unit testing frameworks, etc). Have these dlls referenced. Reference projects in other projects. Rename part of the projects. For eg. the ability to replace {MyProj}.Service with NewName.Service

Tryma answered 4/2, 2011 at 16:11 Comment(1)
@Adron: did you ever get around to writing about this?Orobanchaceous
B
2

The other parts includes making the .vstemplate xml file and placing the zip in the ProjectTemplates.

Per the article:

Put the .zip template file in the Visual Studio project template directory. By default, this directory is \My Documents\Visual Studio 2010\Templates\ProjectTemplates\

The Visual Studio template will then be available from File > New Project. If making a template for a single item, place it in the \ItemTemplates folder instead to make it available from the Add New Item context menu in Solution Explorer.

Brochu answered 24/6, 2012 at 5:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.