RequiredPlatformVersion 項目 (Visual Studio 樣板)

指定專案範本需要正確運作作業系統的最小版本。 這個項目用來為建立 Windows 市集 應用程式的專案範本。

RequiredPlatformVersion 值直接與作業系統的版本比較。 如果 RequiredPlatformVersion 大於作業系統版本中,樣板不會出現在 [新增專案] 對話方塊。 為 Windows 8 要指定範本或更高,請將 RequiredPlatformVersion 設定為 6.2.0。 為 Windows 8.1 要指定範本或更高,請將 RequiredPlatformVersion 到 6.3.0。

指定 RequiredPlatformVersion=8 的範本與前一個客戶 Windows 市集 範本不相容。

<RequiredPlatformVersion> OperatingSystem </RequiredPlatformVersion>

屬性和項目

無。

屬性

無。

子項目

無。

父項目

元素

描述

TemplatePlatformName

指定的平台專案範本目標。

文字值

需要文字值。

備註

此文字指定範本所需的最小作業系統版本。

範例

這個範例指定專案範本以 Windows 8 或更新版本。

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

請參閱

參考

TargetPlatformName 項目 (Visual Studio 樣板)

Visual Studio 範本結構描述參考

概念

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