TargetPlatformName Element (Visual Studio Templates)


For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

Specifies the platform that the project template targets. This element is used to specify that a project template is used to create Windows 8.x Store apps.

        <TargetPlatformName> OperatingSystem</TargetPlatformName>  

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



Child Elements

RequiredPlatformVersionSpecifies the version of the operation system that the project template targets.

Parent Elements

TemplateDataCategorizes the template and defines how it displays in either the New Project or the Add New Item dialog box.

A text value is required.

The text must be Windows.

This example specifies that the project template targets Windows 8 or later.

<VSTemplate Type="Project" Version="3.0.0" xmlns="">   
    <TemplateContent> </TemplateContent>  

Creating Project and Item Templates
Visual Studio Template Schema Reference