Here is what I did:
1) Create a project that has a service for which I want to generate client code
2) Create an MSBuild task that does the following:
a) Takes the compiled WCF Service assembly, runs svcutil.exe on it to extract XSD and WSDL metadata for all the services in the Service assembly.
b) Runs svcutil.exe again, this time on the extracted XSD and WSDL files to generate a .cs file containing the client
c) Run csc.exe to compile the generated client code into a separate assembly.
3) Insert the MSBuild task into the "AfterBuild" target of the project containing this service.
, , , , , - . , , , -. - , MSBuild XML .