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

后端 未结 3 1743
南方客
南方客 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 04:50

    I did two things in the same step. Not sure if one or both resolved the problem:

    1. Added a [DataContract(Namespace="My.Shared.Assemblys.Namespace")] to one of the classes in the shared assembly.
    2. Restarted VS 2010 Beta 2

提交回复
热议问题