Visual Studio Templates – Composite WPF Guidance – Installation


First of all download the template package from here.
For an overview of the functionality see another post.

 

Extract the zip file and move to the Bin folder.

In the bin folder three files are located:
image

  • install.bat does all the work to setup the templates (run the .VSI and add the .DLL to the global assembly cache)
  • CompositeTemplateWizards.dll contains the Wizards used from the project templates. This assembly must be installed into the GAC.
  • Templates.vsi is VSI installer package with all the templates (need the wizard assembly in the GAC).

If you prefer building the code by yourself have a look into the Source folder. What you have to do is build the C# project, and zip all the project templates. Then zip all three zip-files together with the .VSContent file to a .ZIP archive and rename it to .VSI.

Have fun 🙂

And see this post for usage of the templates.

Comments (7)

  1. Gerd Richter says:

    First thanks for creating this template.

    But I can not use it. VS2008 tells me that a untrusted assembly is used. Any hints?

    Thx.

  2. knom says:

    Is it the message described in http://blogs.msdn.com/knom/archive/2008/10/22/using-the-vs-templates-for-composite-wpf-guidance.aspx?

    (notes at the bottom)

    If not, what’s the exact message, and when do you get it?

    br,

    max.

  3. Gerd Richter says:

    It works now.

    No it was not this message. It was: "Error: this template attempted to load an untrusted component ‘CompositeTemplateWizards, [……] For more information on this problem and how to enable this template, please see documentation on Customizing Project Templates". I got this message every time I tried to create a new composite project.

    After reinstalling the dll it worked (gacutil /f -i CompositeTemplateWizards.dll).

    Now I can create projects. And yes, after creating my first view I got the "do you trust this template" message.

    o/

    This template really helps me understand the concept of prism.

  4. Simon says:

    I don’t get an error but neither do does the new solution items show up.

    Are there any particular version dependencies?

    Cheers

  5. Roland says:

    For those who don’t like assemblies being added to the GAC unless absolutely necessary: The wizard assembly can also be copied to the "PublicAssemblies" folder of Visual Studio:

    C:Program FilesMicrosoft Visual Studio 9.0Common7IDEPublicAssemblies

  6. ranjith.chevanan says:

    Hi,

     Im able to create the template in VS2005 but if I try to create it in Vs2008 it gives me the error "Error: this template attempted to load an untrusted component ‘CompositeTemplateWizards, [……] For more information on this problem and how to enable this template, please see documentation on Customizing Project Templates"

    Can you please help?

  7. Ranjith,

    If your install is failing in 2008, there is a problem with gacutil.exe. goto cmd prompt and type gacutil.exe -version. If you have lesser than 2.0 version follow these instructions.

    a) goto Programs> Microsoft VS 2008> Visual studio tools Visual studio 2008 command prompt

    In here change your directory to the base directory where you have the install

    type gacutil.exe -version and see if it is greater than 2.0 (should be around 3.5) … in the base directory where you have install,

    gacutil.exe -i CompositeTemplateWizards.dll

    restart vs 2008 and things should start working