I have a WPF assembly in which I would like to embed five icons for different filetypes associated with my application. How can I embed these icons into my EXE?
@sm
In addition to adding the files to your project resources, you can add the files to your project and set their Build Action to resource.
You can then refer to the files from XAML using the Source property. For example a file Icon.png in a directory "Resources" would be loaded using:
And to load the file from code you would use:
new BitmapImage(new Uri(@"pack://application:,,,/Resources/Icon.png"))