Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Embedding Resource Files in Applications

Visual Studio .NET 2003

After you have created resource files, it is easy to add them to your application. Binary resource files (.resources) or XML resource files (.resX) can be added directly to your project. When your project is compiled, the resources files will be compiled as well. You can retrieve embedded resources (resources that have been compiled into a .dll file) by using the ResourceManager class. For more information, see Retrieving Resources with the ResourceManager Class.

If you want to frequently update resources in a program without having to recompile the entire solution, create a resource assembly. For more information, see Creating Resource Assemblies.

To add a resource file to your project

  1. Create the resource file. For more information, see Creating and Editing Resource Files with ResEditor.
  2. From the Project menu, choose Add Existing Item.

    The Add Existing Item dialog box opens.

  3. Browse to the resource file that you want to add to your project. This can be either a .resources file or a .resX file. Select the appropriate file.
  4. From the Build menu, choose Build Solution to embed your resource file in your compiled project.

See Also

Retrieving Resources with the ResourceManager Class | Creating and Editing Resource Files with ResEditor | Creating Resource Assemblies

Show:
© 2015 Microsoft