RequiredPlatformVersion 元素(Visual Studio 模板)

指定项目模板需要正常操作系统的最低版本。此元素用于指定项目模板用于创建 Windows 应用商店 app。

<RequiredPlatformVersion> OperatingSystem </RequiredPlatformVersion>

特性和元素

无。

特性

无。

子元素

无。

父元素

元素

描述

TemplatePlatformName

指定该平台的项目模板目标。此元素用于指定项目模板用于创建 Windows 应用商店 app。

文本值

需要一个文本值。

备注

此文本指定模板所需的操作系统最低版本。使用该值 8 指定 Windows 应用商店 app。

示例

此示例指定项目模板以 Windows 8 或更高版本。

<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>

请参见

参考

TargetPlatformName 元素(Visual Studio 模板)

Visual Studio 模板架构参考

概念

Visual Studio 模板介绍