I have 3 projects in the same solution - one exposes a WCF service and the other two consume the service. One of the consumers works fine, but the other generates a CS0426 on the generated Reference.cs saying that isn't a member of my namespac开发者_C百科e. Adding the service reference works fine (no errors), this only happens on build.
So far, I cannot find a difference between the two projects...
I just found a blog post that solved it for me. The short answer is that it was because I had a namespace and class with the same name in the consumer. Weird that it causes this error though... I couldn't really see why.
精彩评论