Service proxy reference class renamed

I have my web application that hosts Webservices (svc), which are used in Silverlight Webapplication. After a while, I added some new things to my service, and now I tried updating my proxy classes in the Silverlight Application Project.

Unfortunately, Visual Studio now generates new class names. I used to have this:

public SilverlightApplication.ServiceReferenceDoc.Document Document 

but now I get a different class name (number one after the name)

 SilverlightApplication.ServiceReferenceDoc.Document1 Document 

Which is really bad, because my Silverlight projects have a lot of web services and they have a lot of code that uses these proxy classes.

So far I have learned that it generates a proxy class 2 times.

Some ideas why this renaming occurs? I already tried VS2015, VS2013, and also deleted the whole link and added it again, but this is the same.

+5
source share
1 answer

We had mixed EF classes with our own classes. This caused the generation of two classes with the same name.

0
source

Source: https://habr.com/ru/post/1247710/


All Articles