locked
Set build dependencies in multi-project template wizard RRS feed

  • Question

  •  

    I have a multi-project template and I want to set the build order between two of my project in the template. I know that this can be done in Wizard for the template but I can't figure out how.

    Here's my .vstemplate file

    <?xml version="1.0"?>
    <VSTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Type="ProjectGroup" Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
     <TemplateData>
      <Name>VFPizza2</Name>
      <Description>No Description</Description>
      <Icon>__Template_small.png</Icon>
      <PreviewImage>__Template_large.png</PreviewImage>
      <ProjectType>CSharp</ProjectType>
      <TemplateGroupID>Silverlight</TemplateGroupID>
      <SortOrder>1000</SortOrder>
      <CreateNewFolder>true</CreateNewFolder>
      <DefaultName>VFPizza2</DefaultName>
      <ProvideDefaultName>true</ProvideDefaultName>
      <EnableLocationBrowseButton>true</EnableLocationBrowseButton>
      <LocationField>Enabled</LocationField>
     </TemplateData>
     <TemplateContent>
      <ProjectCollection>
       <ProjectTemplateLink ProjectName="VFPizza.Web">VFPizza.Web\VFPizza.Web.vstemplate</ProjectTemplateLink>
       <ProjectTemplateLink ProjectName="VFPizza">VFPizza\VFPizza.vstemplate</ProjectTemplateLink>
       <ProjectTemplateLink ProjectName="VfxObject">VfxObject\VfxObject.vstemplate</ProjectTemplateLink>
       <ProjectTemplateLink ProjectName="VfxApplicationBase">VfxApplicationBase\VfxApplicationBase.vstemplate</ProjectTemplateLink>
       <ProjectTemplateLink ProjectName="VfxFormBase">VfxFormBase\VfxFormBase.vstemplate</ProjectTemplateLink>
       <SolutionFolder Name="VfxDataLayer">
        <ProjectTemplateLink ProjectName="VfxDataLayer.Web">VfxDataLayer.Web\VfxDataLayer.Web.vstemplate</ProjectTemplateLink>
        <ProjectTemplateLink ProjectName="VfxDataLayer">VfxDataLayer\VfxDataLayer.vstemplate</ProjectTemplateLink>
       </SolutionFolder>
       <ProjectTemplateLink ProjectName="VfxControl">VfxControl\VfxControl.vstemplate</ProjectTemplateLink>
       <ProjectTemplateLink ProjectName="VfxControlBase">VfxControlBase\VfxControlBase.vstemplate</ProjectTemplateLink>
       <ProjectTemplateLink ProjectName="VfxApplication">VfxApplication\VfxApplication.vstemplate</ProjectTemplateLink>
      </ProjectCollection>
      <CustomParameters />
     </TemplateContent>
    </VSTemplate>
    

    I need to set a dependency between VfxDataLayer.Web and VfxDataLayer so the second to be built after the first. I can't set a reference because the first one is on the server and the second one is on the client.

    Thanks

    Mitko

     

    Monday, August 23, 2010 8:11 AM

Answers

All replies