Make Visual Studios "Add Service Reference" Feature use an existing Class
Posted
by gencha
on Stack Overflow
See other posts from Stack Overflow
or by gencha
Published on 2010-04-16T12:49:13Z
Indexed on
2010/04/16
13:03 UTC
Read the original article
Hit count: 310
When I add a service reference to my Visual Studio 2010 C# project, a new class for one of the types defined in the WSDL will be generated. A de-facto equivalent definition of that type already exists in our solution in a different assembly.
When adding the SoapTypeAttribute to the existing class and replacing the references to the generated class in the generated code, everything runs perfectly and as expected.
How would I tell Visual Studio to use the existing class in the generated code?
© Stack Overflow or respective owner