Let’s say I have 100 winforms in folder Forms. All form classes belong to ProjectName.Forms namespace. I want to move all those forms to folder WinForms and I want their namespace to change to ProjectName.WinForms.
Is there a way to do this automatically without manually changing each form’s namespace? I have a Resharper, but didn’t find any options that could help.
Thank you in advance.
You can actually use the Visual Studio Replace In Files command for this. Under the Edit menu –> Find and Replace –> Replace in files.
Next to the “Look in” dropdown, you have a builder button. Clicking that will bring up a window where you can specify the folder you want to look in.
Here’s a screenie:
alt text http://img148.imageshack.us/img148/5472/replaceinfiles.png