C
C#15mo ago
ivandpf

❔ WPF add Icon

Why when I add in .xaml Icon="favicon.ico" MainWindow said: IOException: Resouce favicon.ico not found.? When I have in my project that file. I try other images but same problem. I have to install something to add icons?
3 Replies
nohopestage
nohopestage15mo ago
Have you set the icon's build action to Resource? Is the icon located within the same directory as MainWindow?
Scottek utek
Scottek utek15mo ago
Do you have copy to output on build on?
Accord
Accord15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?