ligershark / sidewafflev2

Other
30 stars 11 forks source link

Create individual templates for multiple projects in the same VSIX package #36

Open justintcgplayer opened 5 years ago

justintcgplayer commented 5 years ago

I have a solution with two projects, ConsoleApp and WebApp. I would like to create a VSIX that includes two project templates: one for ConsoleApp and one for WebApp (NOTE: I do not want a single template that creates both projects, I want one for each).

If I Create Template for each of these projects and then build the VSIX, it only creates a single template for one of the projects.

avrahamcool commented 5 years ago

I am also very intrested in that same feature. eventually , I canould like to have one extention on the marketplace that would add multiple project templates to VS.

EDIT: maybe it's already doable? (looks like that he wanted here) but I don't understand how to do it..

sayedihashimi commented 5 years ago

Sorry for the late reply. I think you're running into the issue that @avrahamcool linked to above (https://github.com/ligershark/sidewafflev2/issues/35).

The issue is that the names of the .vstemplate files needs to be unique. So just change the name of the second template to something else. The file just has to have .vstemplate as the extension. I think we could improve SideWaffle to help avoid this issue going forward.

To create a VSIX with multiple projects first create a template for one project as shown in my video. Then repeat those steps for the other project templates. Then go and change the names of the .vstemplate files, so that they are unique but still have the .vstemplate extension.