Nuget package consuming issue through VSIX

Topics: Ecosystem, General
Feb 24, 2014 at 4:17 AM
Edited Feb 24, 2014 at 4:18 AM
My solution contains 20 projects and am consuming 5 nuget packages like Json, AutoFac, etc. I want to create a project template which will have 15 projects from my solution. So I followed below steps.
  1. Using "export template" feature I exported the 15 projects.
  2. Unzipped them and added a root .vstemplate file along with them to create the VSIX installer.
  3. Added below xml template to each projects that consuming the nuggets.
<WizardExtension>
 <Assembly>NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>
<FullClassName>NuGet.VisualStudio.TemplateWizard</FullClassName>
</WizardExtension>
<WizardData>
<packages repository="extension"
      repositoryId="MobilityDevKit..b6b2e01f-2255-422f-91f0-60031ea6bdf2">
  <package id="Newtonsoft.Json" version="6.0.1" targetFramework="win" />
  <package id="WinRtBehaviors" version="1.0.3" targetFramework="win" />
  <package id="Autofac" version="3.3.0" targetFramework="win"/>
      </packages>
</WizardData>
Now my issue is that after installing the VSIX although the projects is added successfully, the nugget references are not getting added. Those are showing with yellow exclamation mark after following the manage/restore nugget also. How to resolve it. :(

Also is there any way to export all the projects at a time instead of exporting them as templates one by one.