Re: Rename ignores 'extra' files
- From: "Andrew Backer" <awbacker@xxxxxxxxx>
- Date: 20 Nov 2006 10:37:01 -0800
Kevin,
Sorry for the general frustration, then and possibly now. I am posting
this now after VS started crashing every time I right click-close a
tab.
This is a pretty new project, with just a few forms and which is being
used as a 'test' for trying out control arrangments and property
settings in an attempt to duplicate another problem with a 3rd party
control.
Everything compiles both before and after, since the file names
themselves do not matter in compilation (at all?). As for refactoring
settings, it would be great to find them but I don't see them in the
options. I assume they are there but just cleverly disguised, per
usual. I may have changed them somewhat, since I remember changing
something like that in there, but I'm not sure if it was formatting or
refactoring. This is a C# proj, but the other one is VB so the
refactoring settings wouldn't have needed to be twiddled previously.
Perhaps there is a difference between right-click-rename and F2 rename
when used in the solution browser? The both have the same result
visually, so I assume they are the same.
I have had this problem before, where it will change the .vb but not
the .resx. In those cases I assumed it was something to do with the
fact that it was under source control. Other times it does work fine.
Thanks for the pointers though, I am going to give it a few more tries
in different circumstances and see if I can replicate it. As fun as
bug hunting is, the dollars are lacking in this situation.
Thanks,
//Andrew
Kevin Spencer wrote:
If you rename a class's name definition, or a Field or Property's name
definition, it is changed in all files in the solution.
If this is not happening, have you changed your configuration regarding
refactoring, or have you changed any files outside of Visual Studio? Were
you able to successfully build the solution prior to making the change? That
would tell you if any references are missing.
--
HTH,
Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com
Any experience you can walk away from
is a good one.
"Andrew Backer" <awbacker@xxxxxxxxx> wrote in message
news:1163788964.120750.75440@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Why does a rename in the VS solution explorer ignore the .Designer and
resx files? I have to manually rename them as well.
.. And it doesn't change the class name in the main .cs file either.
I have discovered that I can do the rename in the class designer. If
you rename it _there_ it will change all the names, but it doesn't
rename the files themselves. I know that file name != class name, but
c'mon.
How does this situation get handled at MS? I assume, since you are
forced to use VS, that this feature has been 'used' before. It might
even have been 'tested'. Renames cant be so uncommon...
// Andrew
.
- References:
- Rename ignores 'extra' files
- From: Andrew Backer
- Re: Rename ignores 'extra' files
- From: Kevin Spencer
- Rename ignores 'extra' files
- Prev by Date: Re: Something has stolen Ctrl + Spacebar
- Next by Date: Merge Workbook´s (Excel in VB.Net-VS2005)
- Previous by thread: Re: Rename ignores 'extra' files
- Next by thread: Web Test Recorder - No Postbacks?
- Index(es):
Relevant Pages
|