Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Nested Project Templates
 

Nested Project Templates

It appears that my templates wont register if they are nested under sub-folders within the Solution, Projects, or Items template folders.
Templates/Solutions
Templates/Projects
Templates/Items

Becuase of this, it is not possible to logically group these templates and project items.


For example, I have a 'ProjectGroup' template (mygroup.vstemplate) in the Templates/Projects/MyProjectGroup folder. This ProjectGroup template will add several class library projects to the current solution.
It would be nice to have individual folders for each of the project and their project items, as well as the template file itself in a subfolder, like this:
Templates/Projects/MyProjectGroup/MyClassLibrary1
Templates/Projects/MyProjectGroup/MyClassLibrary2
Templates/Projects/MyProjectGroup/MyClassLibrary3
with each of these folders containing the vstemplate file and project source items.

However, if the template file vstemplate is located within these subfolders, it wont get registered as either bound or unbound reference.
It appears that GAT looks in no deeper than 1 level under the Templates/Projects folder.

I am wondering what is the limitation for this?.
The workaround is to put all vstemplate templates in a single folder and have all their project items in seperate folders, but this is hardly the logical way to group this stuff.

Jezz Santos  Sunday, November 06, 2005 12:51 PM
This is by design and was explicitly made so for compatibility reasons with the built-in VS templates functionality.
In VS templates, you package them as a zip file, and only the .vstemplates directly under the "root" of the zip file are processed and registered. You cannot have nested folders inside the zip file and get them registered.
kzu  Monday, November 14, 2005 2:52 AM
This is by design and was explicitly made so for compatibility reasons with the built-in VS templates functionality.
In VS templates, you package them as a zip file, and only the .vstemplates directly under the "root" of the zip file are processed and registered. You cannot have nested folders inside the zip file and get them registered.
kzu  Monday, November 14, 2005 2:52 AM

You can use google to search for other answers

Custom Search

More Threads

• How to Validate Custom Argument
• Not showing Added Item Template in Add New DailogBox
• Can I do this with GAT
• Unable to update Guidance Automation Extensions to new version
• GAX Uninstall fails on Vista
• Help needed in creating an installer for the guidance package which I've created
• GAT Roadmap
• Installed GAT/GAX but "Guidance Package" items not in VS08's menus
• Cant' install "Guidance Automation Extensions" ...
• How do I automate the inclusion of source files in visual studio projects?