| title | TargetPlatformName Element (Visual Studio Templates) |
|---|---|
| description | Learn about the TargetPlatformName element and how it specifies the platform that the project template targets. |
| ms.date | 11/04/2016 |
| ms.subservice | general-ide |
| ms.topic | reference |
| author | tinaschrepfer |
| ms.author | tinali |
| manager | mijacobs |
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.
<VSTemplate>
<TemplateData>
<TargetPlatformName> OperatingSystem</TargetPlatformName>The following sections describe attributes, child elements, and parent elements.
None.
| Element | Description |
|---|---|
| RequiredPlatformVersion | Specifies the version of the operation system that the project template targets. |
| Element | Description |
|---|---|
| TemplateData | Categorizes 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="http://schemas.microsoft.com/developer/vstemplate/2005">
<TemplateData>
<TargetPlatformName>Windows</TargetPlatformName>
<RequiredPlatformVersion>8</RequiredPlatformVersion>
</TemplateData>
<TemplateContent> </TemplateContent>
</VSTemplate>