✅ Renaming members across a project
I had some generated classes that looked like this:
where the properties were named in snake_case, because the property name drove what was serialized. I've since decided to re-scaffold them using my script more like
but now obviously everywhere I've used this type won't compile. I now have approximately 8300 errors in my project and I think a simple find and replace won't save me - what are some options to fix the errors? I could possibly write a script to convert all snake_case names to pascal case?
9 Replies
i know rider can refactor across projects assuming they're loaded in the same solution
I guess the thing is the old name is gone, maybe I could abuse the naming rule violation warning to get it done?
maybe, or just find and replace :when:
So I checked out the old commit and instructed rider to fix my shit
:when:
Yah ok rider did the trick, now I just need to fix some type names with a shell script