Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CB-6041 createTemplates should install them for VS-2013 as well
  • Loading branch information
purplecabbage committed Feb 14, 2014
1 parent bb7abee commit ea667804f589c5c9b15b74fe361f6a204690329a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
@@ -268,7 +268,14 @@ function package_templates()
{
Log("WARNING: Could not find template directory in Visual Studio,\n you can manually copy over the template .zip files.");
}
}
// add to VS-2013 as well
template_dir = wscript_shell.ExpandEnvironmentStrings("%USERPROFILE%") + '\\Documents\\Visual Studio 2013\\Templates\\ProjectTemplates';
if(fso.FolderExists(template_dir ))
{
dest = shell.NameSpace(template_dir);
dest.CopyHere(templateOutFilename, 4|20);
}
}
}

function zip_project(zip_path, project_path) {
@@ -275,6 +275,7 @@ function package_templates()

zip_project(templateOutFilename, platformRoot + templatePath);


if(addToVS)
{
var template_dir = wscript_shell.ExpandEnvironmentStrings("%USERPROFILE%") + '\\Documents\\Visual Studio 2012\\Templates\\ProjectTemplates';
@@ -287,7 +288,14 @@ function package_templates()
{
Log("WARNING: Could not find template directory in Visual Studio,\n you can manually copy over the template .zip files.");
}
}
// add to VS-2013 as well
template_dir = wscript_shell.ExpandEnvironmentStrings("%USERPROFILE%") + '\\Documents\\Visual Studio 2013\\Templates\\ProjectTemplates';
if(fso.FolderExists(template_dir ))
{
dest = shell.NameSpace(template_dir);
dest.CopyHere(templateOutFilename, 4|20);
}
}
}

function zip_project(zip_path, project_path) {

0 comments on commit ea66780

Please sign in to comment.