Reuse types in current assembly for WCF Proxies

后端 未结 3 951
半阙折子戏
半阙折子戏 2020-12-30 08:15

VS WCF integration has nice option \"Reuse types in refrenced assemblies\". The problem is that I need the same but for the current assembly. Some of the types are already d

3条回答
  •  春和景丽
    2020-12-30 08:40

    There is an easy way to share types between client and service, just by adding reference to shared type assembly to your client BEFORE adding the service reference.

    You can find the detailed scenario and sample project there:

    http://blog.walteralmeida.com/2010/08/wcf-tips-and-tricks-share-types-between-server-and-client.html

提交回复
热议问题