I built my own project template. When a project is created with the template, a custom wizard is launched that allows the user to edit the project that was created.
The problem is that I also need to add some very simple nuget packages to the created project (just mvvmlight, MyToolkit and 1 other). To do this I added a WizardData
element to my vstemplate with the right packages.
Here comes the problem: in order to launch my custom wizard, I need to put a reference to my wizard inside the WizardExtension
element. But in order to install the nuget packages automatically I need to place a reference towards NuGet.VisualStudio.TemplateWizard
inside my WizardExtension
element, and the WizardExtension
can only have one class that it will instantiate, but I have 2 that need to run.
So how do I solve this?
Here's the code that launches my own wizard. Now I just need the NuGet packages to install too:
<WizardExtension>
<Assembly>PartyTemplateWizard, Version=1.0.0.0, Culture=Neutral, PublicKeyToken=7eb2f41084fd4cd5</Assembly>
<FullClassName>PartyTemplateWizard.Wizard</FullClassName>
</WizardExtension>
<WizardData>
<packages repository="template">
<package id="MvvmLight" version="4.1.27.0" />
<package id="MvvmLightLibs" version="4.1.27.0" />
<package id="MyToolkit" version="1.14.0" />
<package id="linqtotwitter" version="2.1.06" />
</packages>
</WizardData>
Does anyone have a solution?