ligershark / pecan-waffle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SolutionFolders

mm98 opened this issue · comments

commented

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

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?

commented

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)

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.