Embedding Resource Files in Applications
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
- Create the resource file. For more information, see Creating and Editing Resource Files with ResEditor.
- From the Project menu, choose Add Existing Item.
The Add Existing Item dialog box opens.
- 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.
- From the Build menu, choose Build Solution to embed your resource file in your compiled project.