TargetPlatformName 項目 (Visual Studio 樣板)

指定該平台的專案範本目標。 項目是用來指定專案範本來建立 Windows 市集 應用程式。

<TargetPlatformName> OperatingSystem </TargetPlatformName>

屬性和項目

下列章節會說明屬性、子項目和父項目。

屬性

無。

子項目

元素

描述

RequiredPlatformVersion

指定該作業系統版本專案範本目標。

父項目

元素

描述

TemplateData

為範本分類,並定義在 [新增專案] 或 [加入新項目] 對話方塊中範本的顯示方式。

文字值

需要文字值。

備註

此文字必須是 視窗

範例

這個範例指定專案的預設目標為 Client 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>

請參閱

參考

Visual Studio 範本結構描述參考

概念

在 Visual Studio 中建立專案和項目的範本