Share via


Walkthrough: Importing and Exporting DCS Project Settings

DCS lets you export project settings from a DCS solution and import them again later if the project settings are lost or corrupted. When you export a project, Visual Studio generates a .prjState file in the same folder as the project file. This file contains details of the DCS Visual Studio extensions that apply to the project. When you import a project, Visual Studio uses the .prjState file to re-instate the required DCS actions for the project.

You can export and import individual projects in a solution or the entire solution.

Note

Import and export are useful for backing up and restoring the project settings for a DCS solution, and is especially useful if multiple developers are working on the same projects.

The walkthrough exports the settings for a messages project named WeatherInformationMessages solution from a solution named WeatherInformation, and then imports them again. For detailed instructions about how to create a DCS Solution, see Walkthrough: Creating a DCS Solution. For information about creating the WeatherInformationMessages project, see Walkthrough: Creating a DCS Messages Project.

Detailed Instructions

To export project settings

  1. In Solution Explorer in Visual Studio, right-click WeatherInformationMessages, and then click Export Project.
  2. Using Windows Explorer, locate the WeatherInformationMessages.prjState file in the E:\Walkthroughs\WeatherInformation\Messages\WeatherInformationMessages folder. This file contains the project settings. You can copy this file to a safe location to back it up.

To import project settings

  1. Using Windows Explorer, restore the WeatherInformationMessages.projState file from backup storage to the E:\Walkthroughs\WeatherInformation\Messages\WeatherInformationMessages folder.
  2. In Solution Explorer in Visual Studio, right-click the Solution node, and then click Import Projects.

See Also

Walkthrough: Creating a DCS Messages Project