This documentation is archived and is not being maintained.

IVsDeferredSaveProject Interface

Delays permanently saving a project until the user saves it with SaveAll. Creates the effect of keeping the project in memory. The package uses a generated name for the project, and temporary files at a temporary location. Limits the solution to one project.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in microsoft.visualstudio.shell.interop.8.0.dll)

[InterfaceTypeAttribute(1)] 
[GuidAttribute("83B2961F-AC2B-409B-89BD-DCF698E3C402")] 
public interface IVsDeferredSaveProject
/** @attribute InterfaceTypeAttribute(1) */ 
/** @attribute GuidAttribute("83B2961F-AC2B-409B-89BD-DCF698E3C402") */ 
public interface IVsDeferredSaveProject
InterfaceTypeAttribute(1) 
GuidAttribute("83B2961F-AC2B-409B-89BD-DCF698E3C402") 
public interface IVsDeferredSaveProject

To use IVsDeferredSaveProject, you must create directory descritption file (.vsdir). The flags in the file must include VSDIRFLAG_DeferredSaveProject. For more information, see Template Directory Description Files (.vsdir).

When the user saves the project permanently, the user uses File.SaveAll, which presents a file browser to choose the new file name and location for the project file. Once the file name is chosen, the environment calls SaveProjectToLocation. The project must save itself to the specified file name and save all its other contents to the folder containing the specified file name.

Show: