Udostępnij za pośrednictwem


Temporary Projects

By working with temporary projects, you can create and experiment with a project without having to specify a disk location. When you create a new project, you simply select a project type and template and specify a name in the New Project dialog box. At any time while you are working with the temporary project, you can choose to save it or close and discard it.

All Visual Basic, Visual C#, and Visual J# projects can be created as temporary projects. If you are not already working with temporary projects but want to, in the General, Projects and Solutions, Options Dialog Box dialog box, clear Save new projects when created.

A solution can contain only one temporary project at a time so if you want to add a new project to a solution, you will first be prompted to save the existing temporary project. A temporary project cannot be added to an existing solution. While you are working with a temporary project, you can close and reopen project items without having to save them. You can save a project item that is in a temporary project at any time while you are working with the temporary project. The project item represents a link to the saved file. If you later save the entire temporary project, that saved item remains a linked file and a copy is not saved in the project folder. If you delete a file from a temporary project, it is deleted permanently and cannot be saved if you later save the entire project.

See Also

Tasks

How to: Enable Temporary Projects

How to: Save Temporary Projects