Getting “type or namespace name could not be found” but everything seems ok?

后端 未结 30 1769
北海茫月
北海茫月 2020-11-22 09:27

I\'m getting a:

type or namespace name could not be found

error for a C# WPF app in VS2010. This area of code was compiling fine

30条回答
  •  广开言路
    2020-11-22 09:50

    I had same problem as discussed: VS 2017 underlines a class in referenced project as error but the solution builds ok and even intellisense works.

    Here is how I managed to solve this issu:

    1. Unload the referenced project
    2. Open .proj file in VS ( i was looking for duplicates as someone suggested here)
    3. Reload project again (I did not change or even save the proj file as I did not have any duplicates)

提交回复
热议问题