Create without addServiceRef...

Feb 9, 2010 at 2:41 AM


Is there a way to generate the errorHandlingProxy using svcutil?

I would like to to generate the EHP without having to add as a service reference, are there some switches( if so what params?) to call from svcutil.

Also, is there a way to bail the MyServiceClient and only generate the MyServiceProxy as I tend to delete the client that implements clientbase.






Feb 9, 2010 at 10:09 PM

To be honest I don't know if SvcUtil respects the registry settings for proxy generation that VS uses (as in WCFProxyGenerator setting). Did you try it? If that doesn't work automatically, then since we don't have the source for SvcUtil I don't think command line is possible.

You can edit the source of the add-in project to prevent generating the ClientBase<T> implementation.

Feb 10, 2010 at 3:13 PM

Thanks Michele!

 I did try it a coupla times using just svcutil, no such luck, that's why I was hoping there was a sneaky switch to tell it use EHP addin. For now I just create a separate project and copy the resource.cs and ehp.cs to my project