__VSCREATEPROJFLAGS Enumeration
Controls how a project is created or opened.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
| Member name | Description | |
|---|---|---|
| CPF_CLONEFILE | Create a new project based on an existing project template already on disk. | |
| CPF_NONLOCALSTORE | Project uses nonlocal storage and different save mechanism. | |
| CPF_NOTINSLNEXPLR | Project is not shown as a normal project in Solution Explorer. | |
| CPF_OPENDIRECTORY | Obsolete. Do not use. | |
| CPF_OPENFILE | Project already exists on disk. | |
| CPF_OVERWRITE | If there is a project of the same name on disk already, then overwrite this project. | |
| CPF_SILENT | Use when you do not want to report any failure, as in the case of automation. |
If you determine that a project already exists during a call of CreateProject, query the user to see if they want to overwrite the existing project. If the user does want to overwrite, then call CreateProject again and specify a value of CPF_OVERWRITE for the grfCreateFlags parameter.
__VSCREATEPROJFLAGS2, defined in vsshell8.0.idl, extends __VSCREATEPROJFLAGS.
From vsshell.idl: