Cannot locate resource

后端 未结 2 844
一个人的身影
一个人的身影 2021-02-04 14:38

I don\'t know exactly if it is a bug but i am getting all the time runtime IOException error saying Cannot locate resource.

I am loading some images in my app (c#, WPF)

2条回答
  •  情书的邮戳
    2021-02-04 14:47

    You need to set the build action of the image to the type 'Resource'.

    Right-mouse click on the file >> Properties >> set 'Build Action' to 'Resource'

提交回复
热议问题