Udostępnij za pośrednictwem


How to: Save Temporary Projects

By definition, a temporary project is a project that has not yet been saved. You will be prompted to save a temporary project before you close it, add a project to the current solution, add the solution to source control, create a new project or solution, open an existing project or solution, or close Visual Studio. Also, you can save a temporary project at any time while you are working with it.

To save a temporary project

  1. In Solution Explorer, select the solution or project that you want to save.

  2. On the File menu, click Save or Save As.

  3. In the Save Project dialog box, type a Name for the project.

  4. Select a save Location.

  5. Select Create directory for Solution.

    Note

    This option is not available for Visual Basic Web or Visual C# Web projects, or other directory-based projects. For more information, see Item Management in Projects.

  6. Type a New Solution Name that differs from the project name.

  7. Select Add to Source Control if you want to add the solution to a source control database or repository.

  8. Select OK.

Saving Items in a Temporary Project

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.

To save an item in a temporary project

  1. In Solution Explorer, select the project item that you want to save.

  2. On the File menu, click Save <file> As.

  3. Browse to the folder where you want to save the item.

  4. Type the File name.

  5. Click Save.

See Also

Tasks

How to: Enable Temporary Projects

Concepts

Temporary Projects

Item Management in Projects

Other Resources

Save Project Dialog Box