Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create "Multi Project Template With Custom Wizard" in Visual Studio 2017

I'm looking for help on making a multi project template (i.e. a deploy-able solution that contains multiple projects) with a custom wizard (to enable custom parameters to be entered).

I've followed "How to: Create Multi-Project Templates" to make the multi project template. This is working.

I've followed "How to: Use Wizards with Project Templates" to make my wizard in my VSIX files. This is working.

However, I can't get them to work together. I can either deploy my multi project template without a wizard OR I can get all of my individual project templates to show in the project gallery, via my VSIX file, with a working custom wizard.

Any ideas on how to combine the two methods?

like image 347
Dan Mahoney Avatar asked Sep 26 '17 18:09

Dan Mahoney


1 Answers

I was able to adopt an answer from this blog.

The key is to package all of your exported projects (which come in ZIP which you have to extract) and your root .vstemplate file into a ZIP. This ZIP then needs to be an imported project template in your VSIX project.

Lastly, your wizard needs to be its own separate project you can reference in any of your individual project templates or in your VSIX. I had my wizard being created in my VSIX which just didn't seem to work.

like image 61
Dan Mahoney Avatar answered Nov 12 '22 13:11

Dan Mahoney