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

后端 未结 30 1755
北海茫月
北海茫月 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:45

    In my case I had a Class that was listed in the proper source folder, but was not registering in Solution Explorer. I had to do right click the project > Add Existing item and manually select that Class it said it was missing. Then everything worked fine!

提交回复
热议问题