Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# 4.0 namespace change many files
Message
 
To
29/03/2011 12:21:49
General information
Forum:
ASP.NET
Category:
Solution Explorer
Environment versions
Environment:
C# 4.0
Miscellaneous
Thread ID:
01505372
Message ID:
01505590
Views:
62
Oh how I wish. Neither Visual Studio nor Refactor! refactorings support renaming namespaces.

I think there are issues on how these tools can track changes once the namespace actually changes. Making replacements afterwards breaks the Code model in memory. Just a guess, but I'm sure it's occurred to the Refactor! folks before - it if it was more easily doable it could be done.

However, I typically use a search and replace in files and that works fairly well and is quick..

+++ Rick ---

>Bringing in stuff from other people's Prism samples, for example and need to reset namespaces.
>
>VS 2010 - seem to remember there is a clever way to change the namespace on a lot of files at once ( yeah, I know I can do a global search and replace but I thought there might be one place I can sync namespaces - or a 3rd party goody that does it )
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform