Skip to content

Latest commit

 

History

History
89 lines (72 loc) · 3.14 KB

File metadata and controls

89 lines (72 loc) · 3.14 KB
title Assembly Element (Visual Studio Template Wizard Extension)
titleSuffix
description Learn about the Assembly element and how it specifies the name or strong name of the assembly that implements the IWizard interface.
ms.date 11/04/2016
ms.subservice general-ide
ms.topic reference
f1_keywords
helpviewer_keywords
Assembly element [Visual Studio Template Wizard Extension]
<Assembly> element [Visual Studio Template Wizard Extension]
author tinaschrepfer
ms.author tinali

Assembly element (Visual Studio template wizard extension)

Specifies the name or strong name of the assembly that implements the IWizard interface.

<VSTemplate> <WizardExtension> <Assembly>

Syntax

<Assembly>AssemblyName</Assembly>

Attributes and elements

The following sections describe attribute, child elements, and parent elements.

Attributes

None.

Child elements

None.

Parent elements

Element Description
WizardExtension Contains the registration elements for customizing the template wizard.

Text value

A text value is required.

This text specifies the assembly that implements the IWizard interface. This assembly name must be specified as a full assembly name. For example, MyAssembly, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11dd0a3a, Custom = null.

Remarks

Assembly is a required child element of WizardExtension.

Example

The following example illustrates the metadata for the standard project template for a Visual C# Windows application.

<VSTemplate Version="3.0.0" Type="Item"
    xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
    <TemplateData>
        <Name>MyTemplate</Name>
        <Description>Template using IWizard extension</Description>
        <Icon>TemplateIcon.ico</Icon>
        <ProjectType>CSharp</ProjectType>
    </TemplateData>
    <TemplateContent>
        <Project File="MyTemplate.csproj">
            <ProjectItem>Form1.cs</ProjectItem>
            <ProjectItem>Form1.Designer.cs</ProjectItem>
            <ProjectItem>Program.cs</ProjectItem>
            <ProjectItem>Properties\AssemblyInfo.cs</ProjectItem>
            <ProjectItem>Properties\Resources.resx</ProjectItem>
            <ProjectItem>Properties\Resources.Designer.cs</ProjectItem>
            <ProjectItem>Properties\Settings.settings</ProjectItem>
            <ProjectItem>Properties\Settings.Designer.cs</ProjectItem>
        </Project>
    </TemplateContent>
    <WizardExtension>
        <Assembly>MyWizard, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11dd0a3a, Custom=null</Assembly>
        <FullClassName>MyWizard.CustomWizard</FullClassName>
    </WizardExtension>
</VSTemplate>

See also