the name <…> does not exist in the namespace clr-namespace <…>

前端 未结 25 1196
名媛妹妹
名媛妹妹 2020-11-28 04:59

I have a small WPF application which used to compile just fine but is not anymore. I can\'t really say at which point it stopped building. It just worked fine one day, and t

25条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 05:33

    I had the similar issue. In my case, I had to do the following

    • remove the referencing markup from xaml (in this example, )
    • build the Class ( in this example file which contains HistoryViewModel class )
    • Once its built, add the referencing markup in xaml
    • build again

    The above method worked for me.

提交回复
热议问题