ligershark / pecan-waffle

Apache License 2.0
16 stars 4 forks source link

SolutionFolders #36

Open mm98 opened 8 years ago

mm98 commented 8 years ago

In VSTemplate files it is possible to define SolutionFolder nodes. Would it be possible to add this option to Pecan waffle also?

sayedihashimi commented 8 years ago

Interesting idea I haven't thought about it. I think it's an interesting idea. So how would you mark the sln folder? Expression in the .ps1 file?

mm98 commented 8 years ago

My current VStemplate file:

<TemplateContent>
    <ProjectCollection>
        <SolutionFolder Name="Class Libraries">
            <ProjectTemplateLink ProjectName="$projectname$.Common" CopyParameters="true">
                Common\MyTemplate.vstemplate
            </ProjectTemplateLink>
            <ProjectTemplateLink ProjectName="$projectname$.Domain" CopyParameters="true">
                Domain\MyTemplate.vstemplate
            </ProjectTemplateLink>
            <ProjectTemplateLink ProjectName="$projectname$.Repository" CopyParameters="true">
                Repository\MyTemplate.vstemplate
            </ProjectTemplateLink>
            <ProjectTemplateLink ProjectName="$projectname$.Service" CopyParameters="true">
                Service\MyTemplate.vstemplate
            </ProjectTemplateLink>
            <ProjectTemplateLink ProjectName="$projectname$.Web" CopyParameters="true">
                Web\MyTemplate.vstemplate
            </ProjectTemplateLink>
        </SolutionFolder>
        <SolutionFolder Name="Clients">
            <ProjectTemplateLink ProjectName="$projectname$.Client.Mvc5" CopyParameters="true">
                Client.Mvc5\MyTemplate.vstemplate
            </ProjectTemplateLink>
        </SolutionFolder>
    </ProjectCollection>
</TemplateContent>

If possible ... why not just allow solution folders in the ..\Templates folder?

As ..\Templates\Class Libraries\Project-1\ ..\Templates\Class Libraries\Project-2\ ..\Templates\Clients\Project-3\

Could also be a key (solution folder name) with an array of projectId's (guids)

sayedihashimi commented 8 years ago

Thanks, the vstemplate stuff doesn't apply with the way that templates are created here. I'd like to support this feature. I'm thinking about how it can be added.