问题
Are there any tools or code generation templates that will let me customize and extend the WCF cliend proxies? It's not that svcutil is horribly broken, but rather I'd like to be able to generatate additional code based on the service contract, not just be limited the svcutil output.
回答1:
Have you looked at the Web Service Software Factory? It allows you to have complete control over the generation of proxy code.
回答2:
I've since found two other options:
- wscf.blue
- WCF Proxy Genererator
回答3:
There are several T4 templates available around the web. Here are some :
http://www.codeproject.com/KB/codegen/WCFWrapperUsingT4.aspx http://staxmanade.blogspot.com/2009/04/t4-replacement-for-add-service.html
来源:https://stackoverflow.com/questions/1035722/how-can-i-customize-wcf-client-code-generation