Expand Minimize

__VSCREATEPROJFLAGS Enumeration

Controls how a project is created or opened.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

[FlagsAttribute]
public enum __VSCREATEPROJFLAGS

Member nameDescription
CPF_CLONEFILECreate a new project based on an existing project template already on disk.
CPF_OPENFILEProject already exists on disk.
CPF_OPENDIRECTORYObsolete. Do not use.
CPF_SILENTUse when you do not want to report any failure, as in the case of automation.
CPF_OVERWRITEIf there is a project of the same name on disk already, then overwrite this project.
CPF_NOTINSLNEXPLRProject is not shown as a normal project in Solution Explorer.
CPF_NONLOCALSTOREProject uses nonlocal storage and different save mechanism.

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.

COM Signature

From vsshell.idl:

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft