pecan-waffle icon indicating copy to clipboard operation
pecan-waffle copied to clipboard

SolutionFolders

Open mm98 opened this issue 9 years ago • 3 comments

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

mm98 avatar May 13 '16 21:05 mm98

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?

sayedihashimi avatar May 13 '16 22:05 sayedihashimi

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)

mm98 avatar May 13 '16 22:05 mm98

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.

sayedihashimi avatar May 16 '16 00:05 sayedihashimi