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

后端 未结 3 1767
南方客
南方客 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:57

    My issue with VS2010 SP1 was trying to use a class that derived from Dictionary with a CollectionDataContract attribute. Seems VS won't reuse the type... I also tried Eric's suggestion above, but it didn't work.

提交回复
热议问题