MSDN SpotlightAzure ShowcaseRIA Development CenterPHP for Windows ShowcaseTechNet Spotlight

How to Create Embedded Resources

When you add resources to a Visual Studio project, they are created as linked resources. In some cases, you may want to embed the resources in the application resource (.resx) file. 

Visual Studio 2010

When you add resources to a Visual Studio project, they are created as linked resources. In some cases, you may want to embed the resources in the application resource (.resx) file. For more information, see Linked and Embedded Resources.

Resources can be changed from linked to embedded resources on the Resources page of the Project Designer.

Note:
String resources are always embedded in the .resx file and cannot be changed to linked resources; file resources are always linked at compile time.

To change a resource from linked to embedded

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.
  2. Click 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 want to change.
  5. In the Properties window, select the Persistence property and change it to Embedded in .resx.

To change a resource from embedded to linked

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.
  2. Click 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 want to change.
  5. In the Properties window, select the Persistence property and change it to Linked at compile time.

See Also

Reference

Resgen.exe (Resource File Generator)

Concepts

Linked and Embedded Resources
Resources in Applications

Other Resources

Managing Application Resources
Resources Page, Project Designer

This article was originally published on the MSDN website. Reprinted with permission

   
Blogs
Visual Studio
Extensibility
This gallery showcases products and extensions that complement Visual Studio and Visual Studio Team System.
Hilton Giesenow demonstrates how to add branding for your VSPackage and have that branding appear in the Help...About screen and the Visual Studio start-up splash screen.
View this series of tutorial technical articles on Codeplex for learning Visual Studio extensibility-related topics.