Hint: This questions has many duplicates, but none of the solutions works for me.
What I have is a web service and a client, both having references to a shared assembly "DataModel". I'm creating the service proxy using the "Add service reference..." dialog and select "Reuse types in all referenced assemblies", but still it creates new types instead of reusing mine.
- It used to work, but now suddenly it's not reusing types anymore
- Referencing the shared assembly before adding the service reference does not work
- Restarting VS2010 does not help (I have all updates)
- I tried with a simple POCO class (just a simple class containing an integer property), also no luck
- Deleting and re-adding the service reference (or the shared assembly reference) did not help
- Only selecting the shared assembly in "Reuse types in specified referenced assemblies" - no luck
svcutil.exe /reference
yields the same result
I'm at wit's end somehow. Are there any other solutions?
EDIT: I should add that I just reset my project to earlier commits, and whichever commit I use, still the same problem. And I know it worked with earlier commits!