Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# 4.0 namespace change many files
Message
From
30/03/2011 17:00:27
 
General information
Forum:
ASP.NET
Category:
Solution Explorer
Environment versions
Environment:
C# 4.0
Miscellaneous
Thread ID:
01505372
Message ID:
01505592
Views:
56
Thanks, Rick. Can't find a way to do it with CodeRush either.

I got search and replace to work pretty well in cloning a project ( Prism module ) once I remembered to do case sensitive searches (c#) for names and realized it wasn't going to actually rename the files.

Once I get this prism module stuff working the way I want it i'm going to give some serious thought to templating it.

I'm also trying to figure out some good ways to use Feature Extension and Instant Feature Builder as Karl Shifflett does in In the Box.

Have you used that or NuGet? ( The more I do the Prism stuff the more I am looking for some RAD shortcuts.)



>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 )


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform