I tried to update an existing WCF Service Reference that was originally created in Visual Studio. I tried using both the “Update” and “Edit” functions shown here:
This caused several methods and constructors in the Reference.cs file to be removed, breaking existing functionality.
This constructor and static method were gone:
As well as the GetDefaultBinding() and GetDefaultEndpointAddress() methods, and this enum:
Removing this code broke a number of existing usages and factory methods used to get these clients.
Is there another way to regenerate the service reference that doesn't remove these methods, or some service generation config that allows those methods to be added? I would hate to have to keep my Visual Studio subscription just to keep these service references up to date.