C
C#9mo 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
nohopestage9mo ago
Have you set the icon's build action to Resource? Is the icon located within the same directory as MainWindow?
Scottek utek
Scottek utek9mo ago
Do you have copy to output on build on?
Accord
Accord9mo 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.
Want results from more Discord servers?
Add your server
More Posts