简体   繁体   中英

Some of the images are not coming after Publishing WPF application

I have published my WPF application using ClickOnce publishing method. I ran the application on the client PC and I noticed that some of my images are not appearing eg Background images of Windows. I looked carefully and found out that one Sample.jpg Photo is properly showing inside the Image container which I've used for every record.

Same goes for another image n still coming. The problem I am not able to figure out why both these two images are coming and not the background one?

While creating the Application I have put all the images in a single Folder and all images are referenced from this single folder only.

I also tried by simply copying my project>BIN folder files to client machine and yes, all images are loaded properly without any issues. The problem is only coming in the publish version of my application.

Could anyone help me in this? are there any settings I should take care of while deploying the application? Or I should move them to any specific location?

您的图像“构建操作”属性是否设置为“内容”,“复制到输出”目录属性是否设置为“始终复制/如果较新则复制”?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM