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

前端 未结 25 1193
名媛妹妹
名媛妹妹 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:39

    Had this problem going round in circles wasting a few hours. I moved a separate user control dll into the project so it was compiled in the project and not a dll referenced. This broke the whole project so I then went through checking meticulously all namespaces, paths and file names. Tried deleting obj files, changing between release and debug, between x86 and AnyCPU. Opening saving all, recompile still no joy.

    Remember having a similar problem before previously, the error flagged in VS2013 was not directly related to where I had to modify the XAML but by using

    x:Name="myControl"
    

    on all controls, instead of

    Name="myControl"
    

    fixed it.

提交回复
热议问题