I’ve got a WCF project that I’m referencing from another project. My WCF has this defined as a method:
public MyClass getClass() {
return new MyClass();
}
MyClass is in a commonly shared library, so when I add the web reference for my service, it simply uses the MyClass class in the shared library. However, for various reasons, I need to force it NOT to use that, and instead generate it’s own internal class structure to match (as would happen when MyClass is NOT in a shared library.)
Short of removing it from the shared library, is there a way to force this behavior?
While configuring the service reference, you can select to re-use types in certain libraries instead of “all”. This way, you can include all but the library you don’t want to re-use: