WCF Service Reference does not reuse types in existing assemblies (VS 2010 Beta 2)

后端 未结 3 1763
南方客
南方客 2021-02-20 04:09

I\'m looking for the best approach to share types (the actual classes, not proxies) between a WCF service and a client. To that end, I defined the classes in a separate assembl

3条回答
  •  悲哀的现实
    2021-02-20 05:00

    Had the same issue, but the I forgot to build assembly with DataContracts for client and thus it was generating it's own contracts. Once I've rebuilt the assembly - it reused them.

提交回复
热议问题