Error: 'Cannot create unknown type '{clr-namespace:NameSpace.Properties}Settings'.'

前端 未结 4 1682
南笙
南笙 2020-12-09 02:08

I define my settings and styles in a ResourceDictionary:



        
4条回答
  •  余生分开走
    2020-12-09 02:29

    As a variation on other answers & comments, this worked for me:

    • Set the file's "Build Action" property to "Page".

    • Build (problem gone - but...:)

    • Set the file's "Build Action" property to "Resource".

    • Build

    • Problem still gone!

    Seems like a VS bug to me.

提交回复
热议问题