Reputation: 259
Folks, my project scope / requirements were modified in the middle of development (never happened before)...
so my issue right now is that I need to rename my class object which is currently named EmployerWorkflowService to EmployerWorkflow
because a new windows service object will be created that will be named "EmployerWorkflowService"
I am using VS 2010, C#. There is only one solution file that contains both these projects.
Any suggestions on how to rename the class object as painlessly as possible and have the whole solution file compile?
Upvotes: 0
Views: 429
Reputation: 268293
Right-click on class name in Visual Studio, select Refactor > Rename... and Visual Studio will update all references for you.
As a shortcut, you can press F2 when caret is on the class name, or use a smart tag that appears when you edit the name manually.
Upvotes: 1