Rename method across projects within one solution

I noticed this on Build 97.

I Refactor | Rename a method and all references
to that method within the containing project are
changed to reflect the new name.

However, another project within the same solution
that references the method is not updated. I then
am having to go through each file in the second
project and manually replace the old name with the
new name.

Is this a normal use case or should our solutions
and projects be set up differently?

Thanks,
-paul

1 comment
Comment actions Permalink

Paul,

of course, ReSharper should update all the references to the method being
renamed regardless
of where the references found. Does Find Usages find the references which
are missed by Rename?
Could you also please describe how your another project references the
project that contains the declaration of the method being renamed? I mean if
another project references the output assembly of the
project rather than the project itself, ReSharper will not recognize the
references in another project as references to the original method and will
not rename them. There was a recent thread in the newsgroup,
'Weird error highlighting' where this problem is discussed.

"Paul Moore" <no_mail@jetbrains.com> wrote in message
news:12242257.1090018234649.JavaMail.itn@is.intellij.net...
>I noticed this on Build 97.
>

I Refactor | Rename a method and all references
to that method within the containing project are
changed to reflect the new name.

>

However, another project within the same solution
that references the method is not updated. I then
am having to go through each file in the second
project and manually replace the old name with the
new name.

>

Is this a normal use case or should our solutions
and projects be set up differently?

>

Thanks,
-paul



0

Please sign in to leave a comment.