Search code examples
c#web-serviceswcf

Updating WSDL file ,generates new reference file


on updating web reference , visual studio generates another class instead of over-writing same class in another reference1.cs file


Solution

  • the solution is to modify the .wsdl file.

    1. You need to remove old version class reference and keep new version as default one
    2. remove all .xsd files in Service Reference and edit '*.svcmap' file remove all references from <MetaData> tag.
    3. Delete all files under *.svcmap tree