Feb 24, 2014 at 3:17 AM
Edited Feb 24, 2014 at 3: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.
- Using "export template" feature I exported the 15 projects.
- Unzipped them and added a root .vstemplate file along with them to create the VSIX installer.
- Added below xml template to each projects that consuming the nuggets.
<Assembly>NuGet.VisualStudio.Interop, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>
<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"/>
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.