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

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

    I had the same issue. One night my project would compile the next morning ERRORS!.

    I eventually found out that visual studio decided to "tweak" some of my references and point them elsewhere. for example:

    System.ComponentModel.ISupportInitialize somehow became "blahblah.System.ComponentModel.ISupportInitialize"

    Quite a rude thing for vs to do if you as me

提交回复
热议问题