Compartir a través de


TargetPlatformName Element (Visual Studio Templates)

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

VSTemplate
  TemplateData
    …..TargetPlatformName

<TargetPlatformName> OperatingSystem </TargetPlatformName>

Attributes and Elements

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

Attributes

None.

Child Elements

Element

Description

RequiredPlatformVersion

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

Parent Elements

Element

Description

TemplateData

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

Text Value

A text value is required.

Remarks

The text must be Windows.

Example

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

<VSTemplate Type="Project" Version="3.0.0" xmlns="https://schemas.microsoft.com/developer/vstemplate/2005"> <TemplateData> <TargetPlatformName>Windows</TargetPlatformName> <RequiredPlatformVersion>8</RequiredPlatformVersion> </TemplateData> <TemplateContent> </TemplateContent></VSTemplate>

See Also

Reference

Visual Studio Template Schema Reference

Concepts

Creating Templates for Projects and Items in Visual Studio