Search code examples
c#visual-studio-2010embedded-resourceresx

How to include .resource files into an assembly?


I have a couple of compiled resource files (myProg.en_US.resource, myProg.de_DE.resource and so on) which are currently loaded during runtime using ResourceManager.CreateFileBasedResourceManager(). I want to modify that and embed the resources into the assembly. How can this be done? MSDN only speaks of .resx-files.


Solution

  • Click the file in solution explorer, then find it's properties. there is an item called build action. You can choose the option "embedded resource"enter image description here