Share via

PromptForSaveOnCreation Element (Visual Studio Templates)

Specifies whether the user is prompted for a project save location via the New Project dialog box when creating a project. If this element is set to true, then the user is prompted for a save location; if false, then they are not prompted. (That is, a temporary project is created.)


<PromptForSaveOnCreation> true/false </PromptForSaveOnCreation>

Attributes and Elements

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



Child Elements


Parent Elements




Required element.

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

Text Value

A text value is required.

The text must be either true or false, true indicating that the user will be prompted for a save location when creating a new project.


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

Temporary projects are projects that you can create and modify without saving the contents of that project on disk. For more information, see Temporary Projects.


The following example sets the value of PromptForSaveOnCreation equal to false, which specifies to not allow the project to be created as a temporary project.

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

See Also


How to: Enable Temporary Projects


Visual Studio Template Schema Reference

Other Resources

Visual Studio Templates