locked
Multi-project Visualstudio Template RRS feed

  • Question

  •  

    hello,

    I have a prob reg multiple-project vstemplate

    I have to make template for 4 projects in a soln.

    I successfully create the multiproject vstemplate,but my prob start now

    When I go to New->project->I get my template here,

    when I click it I give its Name and location let it be "TestTemplate" and location be "c:\Test"

    The default structure that I get at C:\Test directory  is

    TestTemplate->TestTemplate(Folder)->prj1,prj2,prj3,prj4
                ->Visualstudio solution File

    These prj's folders contains individuals Mytemplate.vstemplate file.

    I dont'nt want this structure ,I have to use some more folders, when anyone click myTemplate then structure that I want should be

    Hrmate(Folder)->3rd party(folder)->Contains third party tools
                                 ->Data(folder)->contains files and folders
                                ->business(folder)->bus1(folder),Source(folder)                                                                          

                             ->Versioning(folder)contains files and folders                                          

                             ->Webservices(folder)contains files and folders        

     Then in Source ->Sub1(folder)\TestTemplate(Project Name folder),.Sln file

    And Now in TestTemplate folder I want my project i.e

    \TestTemplate\Prj1,prj2,prj3,prj4

                       

                                                                                            |->

    My Multiproject Vstemplate file is as:

    <VSTemplate Version="2.0.0"
      xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"
      Type="ProjectGroup">
      <TemplateData>
        <Name>Test Template</Name>
        <Description>Two great templates.</Description>
        <ProjectType>CSharp</ProjectType>
        <ProjectSubType>
        </ProjectSubType>
        <SortOrder>4</SortOrder>
        <CreateNewFolder>false</CreateNewFolder>
        <LocationField>Enabled</LocationField>
        <EnableLocationBrowseButton>true</EnableLocationBrowseButton>
        <Icon>fsapp.ico</Icon>
        </TemplateData>
        <TemplateContent>     
          <ProjectCollection>
           <ProjectTemplateLink
         ProjectName="Project1">
          Hrmate\business\Source\sub1\TestTemplate\prj1\MyTemplate.vstemplate</ProjectTemplateLink>
        <ProjectTemplateLink
           ProjectName="Project2">
          Hrmate\business\Source\sub1\TestTemplate\prj2\MyTemplate.vstemplate</ProjectTemplateLink>
        <ProjectTemplateLink
               ProjectName="Project3">
           Hrmate\business\Source\sub1\TestTemplate\prj3\MyTemplate.vstemplate</ProjectTemplateLink>
        </ProjectTemplateLink>
        <ProjectTemplateLink
            ProjectName="Project4">
     Hrmate\business\Source\sub1\TestTemplate\prj4\MyTemplate.vstemplate</ProjectTemplateLink>
        </ProjectTemplateLink>
      </ProjectCollection>
       </TemplateContent>
      </VSTemplate>

     

    Hope it is understandable,

    tell me if there is any soln of this or I use GAT

     

    Thanks

     

    Wednesday, May 23, 2007 11:29 AM

Answers

  • Hi Monesh,

     

    I never used such an embedding folder structure so I'm not sure if this will work out of the box.

     

    This is not really related to GAT and there is nothing in GAT that will allow you to use a folder structure that may not be supported by VS.

     

    So, I would recommend you to post your question to the VS extensibility forum where VS team members hang around and you should ask them if VS will properly unfold such a project structure.

     

    Sorry I can't be of more help regarding this one,

     

    thanks,

    -Victor.

    Wednesday, May 30, 2007 6:03 AM