locked
WCF Proxy Class Alias Problem RRS feed

  • Question

  • My Windows Store App client consumes a WCF service, which changes occasionally and I refresh my proxy to adjust. Then the following situation happened. There were 2 classes with the same name in a different namespace:

    Namespace1.MyClass

    Namespace2.MyClass

    The VS generated them as MyClass and MyClass1. All good. Now there is another change and I refreshed the proxy again. And VS swapped the class aliases, it's MyClass1 and MyClass and nothing compiles. I swapped the class names back in Reference.cs file, but I do not want to do it each time I have to refresh the proxy. I have no influence over the server side. Can I do anything on the client side to have the aliases of the two classes fixed? Thanks.

    Monday, July 27, 2015 8:24 AM