Copy to output directory for images not working + Visual Studio 2010

I am currently developing an application using C # WPF. I am creating a file system for a website for my program. I create HTML files in the default project file (i.e. where all the .cs files are stored).

In the HTML files that I want to copy, I right-clicked on each file and said that I included it in the project and said "Copy if new" in the "Copy to output directory" section.

This works fine with HTML files, but for image files (png) it does nothing, but there is also no error.

Any help would be greatly appreciated.

thank

+5
source share
3 answers

BuildAction , Visual Studio . BuildAction :

. . , , ​​ Readme.

- . .

. , . , .htm .

Embedded Resource - DLL . .

, .

+12

Build Action Content.

+4

I just accidentally found out that I needed to change the assembly action on the Embedded Resource for the image that I wanted to include in the project and copy it to the output directory

+1
source

All Articles