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

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

    [Facepalm] My issue was that I had added the dependency in the C++ way of doing things.

    Go to the project that won't build, open up the 'References' folder in Solution Explorer, and see if your dependency is listed.

    If not, you can 'Add Reference' and choose the dependency on the Projects tab.

    Boom Shankar.

提交回复
热议问题