How to create a multi-project template and include a Libs folder with binaries for references RRS feed

  • Question

  • I have succeeded in creating a multi-project template, but as part of the template I want to include a Libs folder that has third-party binaries that are referenced from the various projects in the solution.  The Libs folder doesn't have to be part of the solution.  I tried just including the Libs folder in my zip file, but when I create a solution using the template it doesn't unzip the Libs folder along with the project folders.

    Any idea how to do this?


    Thursday, November 11, 2010 2:48 PM

All replies

  • Hi Vince,


    Thanks for your post.

    Could you please try the following steps:

    1 Put Libs folder along with other files, something like







    2 Edit the .vstemplate file as



    <Project File="ProjectTemplate.csproj" ReplaceParameters="true">

    <ProjectItem ReplaceParameters="true" TargetFileName="Properties\AssemblyInfo.cs">AssemblyInfo.cs</ProjectItem>

    <ProjectItem ReplaceParameters="true" OpenInEditor="true">Class1.cs</ProjectItem>

    <Folder Name="libs">

    <ProjectItem TargetFileName="libs\ClassLibrary1.dll">ClassLibrary1.dll</ProjectItem>

    <ProjectItem TargetFileName="libs\ClassLibrary3.dll">ClassLibrary3.dll</ProjectItem>




    3 Zip it and install the template.

    Hope this can help.

    Best Regards,

    Ziwei Chen




    • Marked as answer by Victor_Chen Friday, November 19, 2010 8:06 AM
    • Unmarked as answer by Victor_Chen Friday, January 28, 2011 2:51 AM
    Monday, November 15, 2010 9:32 AM