What's the best way to change the namespace of a highly referenced class?
Posted
by vanslly
on Stack Overflow
See other posts from Stack Overflow
or by vanslly
Published on 2009-05-12T03:44:45Z
Indexed on
2010/04/12
16:42 UTC
Read the original article
Hit count: 336
I am attempting to move a highly referenced class from one namespace to another. Simply moving the file into the new project which has a different root namespace results in over 1100 errors throughout my solution.
Some references to the class involve fully qualified namescape referencing and others involve the importing of the namespace.
I have tried using a refactoring tool (Refactor Pro) to rename the namespace, in the hope all references to the class would change, but this resulted in the aforementioned problem.
Anyone have ideas of how to tackle this challenge without needing to drill into every file manually and changing the fully qualified namespace or importing the new one if it doesn't exist already?
Thanks.
© Stack Overflow or respective owner