Compartilhar via


RequiredPlatformVersion Element (Visual Studio Templates)

Specifies the minimum version of the operating system that the project template requires to work correctly. This element is used to for project templates that create Windows Store apps.

The RequiredPlatformVersion value is compared directly with the version of the operating system. If the RequiredPlatformVersion is higher than the operating system version, the template does not appear in the New Project dialog box. To specify a template for Windows 8 or higher, set RequiredPlatformVersion to 6.2.0. To specify a template for Windows 8.1 or higher, set RequiredPlatformVersion to 6.3.0.

Templates that specify RequiredPlatformVersion=8 are compatible with previous customer Windows Store templates.

VSTemplate
  TemplateData
    …..TargetPlatformName
      RequiredPlatformVersion

<RequiredPlatformVersion> OperatingSystem </RequiredPlatformVersion>

Attributes and Elements

None.

Attributes

None.

Child Elements

None.

Parent Elements

Element

Description

TemplatePlatformName

Specifies the platform that the project template targets.

Text Value

A text value is required.

Remarks

This text specifies the minimum operating system version required by the template.

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>6.3.0</RequiredPlatformVersion>
        
    </TemplateData>
    <TemplateContent>
        
    </TemplateContent>
</VSTemplate>

See Also

Reference

TargetPlatformName Element (Visual Studio Templates)

Visual Studio Template Schema Reference

Concepts

Creating Templates for Projects and Items in Visual Studio