Sign in to follow this  
ryanmvsg

[C#] KB815131 work around

Recommended Posts

Does anyone else have another work around other then renaming all of your class references in the reference.cs file? I have a serialized dicitonary with many different key/value pair types and that would be an unreasonable solution to have to go through it everytime I had to update the service reference :(

Share this post


Link to post
Share on other sites
Seems like a job for the tool called sed (Stream EDitor)

[color=#333333][font=arial,]sed -i 's/[i]search[/i]/[i]replace[/i]/g' *[/font][/color]

[left][font="arial,"][color="#333333"]Put the old name in [i]search[/i], the new name in [i]replace[/i], and let the renaming magic happen. [/color][/font][/left]

Share this post


Link to post
Share on other sites
the only issue with that is it also doesn't see any class that contains a serialized dictionary field it doesn't add it to the wdsl. It acts as if that class does not exist so I also have to re-create all classes that use it. It's a major head ache.

Share this post


Link to post
Share on other sites
I basically am tired of all the bugs visual studio has with anything that uses IXMLSerializer. is there a way to serialize a dictionary without using IXMLSerializer?

Share this post


Link to post
Share on other sites
Thanks for all of the posts guys. I'm wanting to eventually take my research and apply it to a commercial project so I'd like as little 3rd party solutions as possible. But I do appreciate the quick feedback, you guys are great :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this