'CompanyName.Foo' is a 'namespace' but is used like a 'type'

后端 未结 8 1107
暗喜
暗喜 2020-12-01 00:26

Restatement of the question

I\'m resurrecting this question because I just ran into this error again today, and I\'m still utterly confused why the

8条回答
  •  孤城傲影
    2020-12-01 00:53

    This also happens if you generate unit tests when you have a namespace and a class with the same name. Which you should never do as explained by Eric Lippert here:

    http://blogs.msdn.com/b/ericlippert/archive/2010/03/09/do-not-name-a-class-the-same-as-its-namespace-part-one.aspx

提交回复
热议问题