RequiredFrameworkVersion element (Visual Studio templates)

Specifies the minimum version of the .NET Framework that is required by the template. It causes the Target Framework Version dropdown to be displayed in the New Project dialog. The RequiredFrameworkVersion element also determines the lowest value available in the dropdown.


Starting in Visual Studio 2017 version 15.6, the Target Framework Version dropdown is no longer a filter for displayed templates in the Templates section of the New Project dialog. Instead, the dropdown functions as a framework picker for the selected template.

<VSTemplate> <TemplateData> <RequiredFrameworkVersion>


<RequiredFrameworkVersion> .... </RequiredFrameworkVersion>

Attributes and elements

The following sections describe attributes, child elements, and parent elements.



Child elements


Parent elements

Element Description
TemplateData Required element.

Categorizes the template and defines how it is displayed in either the New Project or the Add New Item dialog box.

Text value

A text value is required.

The text must be the minimum version number of the .NET Framework that is required for the template.


RequiredFrameworkVersion is an optional element. Use this element only if the template supports a specific minimum version (and later versions if any) of the .NET Framework. If you specify the RequiredFrameworkVersion element and your template doesn't support a specific minimum version of the .NET Framework, the Target Framework Version dropdown displays when it is not applicable.


The following example illustrates the metadata for a standard Visual C# class template.

<VSTemplate Type="Item" Version="3.0.0"
        <Description>My custom C# class template.</Description>

In this example, the minimum version of the .NET Framework that is required by the template, represented by RequiredFrameworkVersion, is 3.0. A project created with this template can target .NET Framework versions starting from 3.0.

See also