Including Images in your Executable?

Issue #98 new
Olivier Van Beeck created an issue

I am trying to get an image to work in the WPF Designer. When adding an Image Control, adding an image to the project and setting the source to that image it displays in the WPF Designer.

However only when the application is run in debug mode (not packaged to an exe) does the image display. As soon as an exe is created the image does not show.

How can I include source files in the packaged exe ? Is there an alternative to get an image to display in an exe ?

Edit: I just tried this in Windows Forms as well, do I need to place the file in the Resources files or something ? Pardon my stupidity, not very experienced in using Visual Studio, always used Powershell ISE.

Comments (1)

  1. Log in to comment