DataContract for enums in WCF
问题 I have a enum that I use via a WCF service in a .Net project. Now I want to add another enum, specified in the same way as the first. But the second one does not get registered in Reference.cs, and therefore is not recognized from the project consuming the WCF service. I have tried to re-write everything as I read that there is an automatic count that is confused if one copy-pastes the enum members. I checked that the service reference is not re-using types in referenced assemblies.