By working with temporary projects, you can create and experiment with a project without specifying a disk location. When you create a project, you just 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 save it, or you can discard it.
Working with Temporary Projects
All Visual Basic and Visual C# projects can be created as temporary projects. If you want to work with temporary projects, in the Options\Projects and Solutions\General dialog box, clear the Save new projects when created check box. For more information, see Creating Solutions and Projects.
A solution can contain only one temporary project at a time. Therefore, if you want to add a new temporary project to a solution that already contains one, you will be prompted to save the existing temporary project first. 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 saving them. However, you can save a project item in a temporary project at any time while you are working with the project. The project item represents a link to the saved file. If you later save the 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 project.
To save a temporary project
In Solution Explorer, choose the solution or project that you want to save.
On the menu bar, choose File, Save or Save As.
The Save Project dialog box opens.
In the , Name box, specify a name for the project.
In the Location box, specify where you want to save the project.
Select the Create directory for Solution check box.
This check box is not available for Visual Basic web projects, Visual C# web projects, or other directory-based projects.
In the New Solution Name box, specify a name that differs from the project name.
Select the Add to Source Control check box if you want to add the solution to a version-control database or repository.
Choose the OK button.