WPF - Image 'is not part of the project or its Build Action is not set to Resource'

后端 未结 10 1975
有刺的猬
有刺的猬 2020-12-29 20:26

I have a project which requires an image in the window. This is a static image and i added through \'Add>Existing Item\'. It exists in the root of the project.

I re

10条回答
  •  灰色年华
    2020-12-29 20:34

    I had a similar problem. After I deleted a someStyle.xaml file that I wasn't really using from the solution explorer. Then I restored the file, but no change happened. Cleaning and rebuilding the project did not help.

    Simply deleting the corresponding row:

     
    

    did the trick.

提交回复
热议问题