BuildProjectOnload Element (Visual Studio Templates)


For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Builds only new projects as you create and add them to a solution. The entire solution isn’t built.


<BuildProjectOnLoad> true/false </BuildOnLoad>  

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



Child Elements


Parent Elements

TemplateDataCategorizes the template and defines how it appears in both the New Project and the Add New Item dialog boxes.

A text value is required.

The text must be either true or false to indicate whether to build only the new project when it’s created from the template.

BuildProjectOnLoad is an optional element. The default value is false.

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

<VSTemplate Type="Project" Version="3.0.0"  
        <Name>My template</Name>  
        <Description>A basic template</Description>  
        <Project File="MyTemplate.csproj">  

Creating Project and Item Templates
Visual Studio Template Schema Reference