Search code examples
c#visual-studio-2008refactoringsolution

Inter-solution C# refactoring in VS


I have solution A which defines public class Foo, and solution B which references A and uses Foo. I rename Foo to Bar in A and use the "Update References" feature, but that only updates the references in the current solution. How do I go about updating them in solution B as well (automatically)?

(note that search&replace isn't an option, because it doesn't take context into account - there may be other symbols called Foo too)


Solution

  • I have had this same problem, and what I did was to create a "master" solution including all of the affected projects; and doing my refactoring in that (using ReSharper). It worked very well.

    I think you need to take the same approach - after all, how could a tool guess that you have other solutions lying around that referencing the same project and needs to be refactored ?