Bagikan melalui


How to: Import or Export Resources

You cannot edit embedded resources in a Visual Studio project directly in the Visual Studio IDE; you must export and edit them in an external program, then import them back into the project.

Note

By default, all resources in a Visual Studio project are created as linked resources; you have to convert them explicitly to embedded resources. For more information, see Linked and Embedded Resources.

To export a resource

  1. With a project selected in Solution Explorer, on the Project menu click Properties.

  2. Select the Resources tab.

  3. On the Resource Designer toolbar, point to the resource view drop-down, click the arrow, and select the type of resource that you want to edit.

  4. Select the resource that you wish to export.

  5. Right-click and choose Export To File from the context menu.

    Note

    This command is only available for embedded resources.

  6. In the Export resource to file dialog box, browse to the location where you wish to export the file, and then click Save.

To import a resource

  1. With a project selected in Solution Explorer, on the Project menu click Properties.

  2. Select the Resources tab.

  3. On the Resource Designer toolbar, point to the resource view drop-down, click the arrow, and select the type of resource that you want to edit.

  4. Select the resource that you wish to import.

  5. Right-click and choose Import From File from the context menu.

    Note

    This command is only available for embedded resources.

  6. In the Import file into resource dialog box, browse to the file you wish to import, and then click Open.

See Also

Tasks

How to: Create Embedded Resources

Concepts

Linked and Embedded Resources

Reference

Resources Page, Project Designer

Other Resources

Managing Application Resources