Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rename multiple symbols at once? (using Roslyn)

Tags:

c#

.net

roslyn

Renamer.RenameSymbolAsync renames one symbol and creates a new Solution. If there are 100 symbols to rename - it will need to be called 100 times and there will be 100 complete solutions created (each, from the previous). That’s quite expensive. Is there a way to tell Roslyn to rename a group of symbols and only then create the needed solution?

like image 890
ispiro Avatar asked Sep 26 '22 03:09

ispiro


1 Answers

No, there isn't currently an API to do it. We take contributions!

like image 192
Jason Malinowski Avatar answered Oct 10 '22 12:10

Jason Malinowski