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

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

    I faced the same issue when i was trying to call the namespace in xaml. was showing that class is not available in the namespace. I searched a lot. Finally i found this issue was with VS. I am using VS 2013. I tried below steps:

    1. Build-->Configuration Manager--> Active Solution Platform --> Changed to x64 and x86 and Any CPU.
    2. Closed the VS and opened again.
    3. Change

      xmlns:VM="clr-namespace:MyFirstAppViewModel"
      

      to

      xmlns:VM="clr-namespace:MyFirstAppViewModel;assembly=ViewModel"
      

提交回复
热议问题