none
Multi-project VSTemplate 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>FSMVA</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 12:25 PM

All replies