Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SolutionFolders #36

Open
mm98 opened this issue May 13, 2016 · 3 comments
Open

SolutionFolders #36

mm98 opened this issue May 13, 2016 · 3 comments

Comments

@mm98
Copy link

mm98 commented May 13, 2016

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

@sayedihashimi
Copy link
Member

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
Copy link
Author

mm98 commented May 13, 2016

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants