Take the 2-minute tour ×  In Visual Studio (I'm using 2010),
When you create your own class/struct, where the filename and
class name/struct name matches, and then attempt to rename the
file, Visual Studio asks if you want to update the class name /
struct name and all references to the class / struct.  When I
import a code file into the project, which follows the naming
convention (file name and class name / struct name are the same)
and then try to rename the file, Visual Studio does not ask me
to update the class / struct and references to it...why is it
only working for files that I create as opposed to files that I
import?  share|improve this question  1 Answer 1  up vote 3 down
vote accepted  You still can rename the class using refactoring
to make sure it updates all references, if it's what you're
looking for.  It's not an answer though, if you really just want
to know why it doesn't work ^^  Maybe the file have to compile
correctly for this trick to work ?  share|improve this answer
Basically, I am w