Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 1.99 KB

File metadata and controls

62 lines (48 loc) · 1.99 KB
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

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 8.x Store apps.

Syntax

<VSTemplate>
    <TemplateData>
        <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="http://schemas.microsoft.com/developer/vstemplate/2005">
    <TemplateData>
        <TargetPlatformName>Windows</TargetPlatformName>
        <RequiredPlatformVersion>8</RequiredPlatformVersion>
    </TemplateData>
    <TemplateContent> </TemplateContent>
</VSTemplate>

See also