I am trying to add a project programmatically. I have create a project template and can call it manually with not problem how ever when I try the following in a command
private void MenuItemCallback(object sender, EventArgs e)
{
DTE2 dte = m_package.DTE;
Solution2 sol = (Solution2)dte.Solution;
string path = sol.GetProjectTemplate("J2 Setup Library", "WiX");
Project proj = sol.AddFromFile(path);
}
I get the com error Project file 'C:\Users\S.Evans\AppData\Local\Microsoft\VisualStudio\14.0Exp\VTC\4c93d582ccc785939ad643bcbfd266ee\~PC\ProjectTemplates\J2 Setup Library.zip\MyTemplate.vstemplate' is from a previous version of this application and must be
migrated.what do I need to do to fix this issue,
I am using VS 2015 and a template exported from a WiX Setup Library project