[1556] Broken Rename refactoring???

I have trouble with renaming a class in a WPF application while working with Visual Studio 2010 Beta 2. I'm studying the MVVM pattern and therefore working on a small demo application. I decided to rename a ViewModel class (which is referenced in XAML). After renaming everything seems to be ok. I saved all changed files and recompiled the application. The compiler gives me "Class not found" for each statement which references my renamed class. After closing and reopening Visual Studio i see that the rename didn't work complete because in the class declaration the name was not changed. Curious is that i've seen the changed class declaration in the editor before closing Visual Studio (and believe me, i have saved the class before closing Visual Studio). If i repeat the refactoring everything is ok. Did anyone else have seen this behavior?

Regards
Klaus

0
3 comments

Hi,

Thanks for the feedback. Could you please create a simple solution which is demonstrating this problem? I have tried to reproduce this on AmazonSearch sample solution which is also uses MVVM pattern and all seems to be ok with rename.

Kirill Falk
JetBrains, Inc
hhtp://www.jetbrains.com
"Develop with pleasure!"

0
Avatar
Klaus Luedenscheidt

Hi Kirill,

as my soloution is just a small demo for training i have attached it here. Meanwhile
i'm working with build 1559 and the problem is still there. Try to rename the class
CustomerSearchViewModel in AdventureWorksClient/ViewModel/Customer to CustomerOverviewViewModel
(or something else) and rebuild the solution. Then you will see the error.

Regards
Klaus



Attachment(s):
DemoApp.7z.zip
0

Hi,

Thanks for the solution! I have reproduced this bug and the corresponding JIRA request has been created,
and you are could monitor its status at http://www.jetbrains.net/jira/browse/RSRP-143764



Kirill Falk
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
0

Please sign in to leave a comment.