ligershark / template-builder

This project will output a NuGet package which can be used to help create Visual Studio Item Templates and Project templates
Other
42 stars 28 forks source link

Deeper folder structure in “add item” dialog #90

Open JonasDam-Dynamicweb opened 8 years ago

JonasDam-Dynamicweb commented 8 years ago

I'm working on creating a template pack with item templates, using TemplateBuilder and SideWaffle.

So far, I've managed to get some templates created, and installed alright.

My challenge is that I can only create a folder structure that is one folder deep - that is, all my templates are placed in the same folder. I was hoping to be able to have a deeper heirachy:

It seems that any folderstructure I create in the "ItemTemplates" folder is simply ignored, apart from first child level Folders.

setting "ls-TemplateSubFolder" in template-builder.props lets me define a folder name that is identical for the lowest levels in the folder hierarchy, but that's not really what I'm looking for.

Is there a simple way to achieve a deeper structure?

sayedihashimi commented 8 years ago

You can add a _preprocess.xml file with the full path, for example: https://github.com/ligershark/side-waffle/blob/master/TemplatePack/ItemTemplates/Extensibility/SideWaffle/SW-ProjectVSTemplateFile/_preprocess-template.xml.

FYI it's better to raise issues like this in the SideWaffle repo because we have more eyes on that repo. If there.