SDKReference Element (Visual Studio Templates)

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at SDKReference Element (Visual Studio Templates).

Specifies that the item template uses an SDK reference.

<VSTemplate>      
    <TemplateContent>          
        <References>              
            <Reference>  
                <SDKReference>SDKname</SDKReference>  

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

Attributes

None.

Child Elements

None.

Parent Elements

ElementDescription
ReferenceSpecifies the assembly reference to add when the item is added to a project.

A text value is required.

This text specifies the SDK reference to add to a project when the item template is instantiated.

<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item">   
    <TemplateData> . . . </TemplateData>   
    <TemplateContent>   
        <References>   
            <Reference>   
                <SDKReference>Microsoft Visual C++ Runtime Package, Version=11.0.0.0</SDKReference>  
...  

References Element (Visual Studio Templates)
Reference Element (Visual Studio Templates)
Creating Project and Item Templates
Visual Studio Template Schema Reference

Show: