How to apply batch changes to source

  • Thread starter Thread starter raulavi
  • Start date Start date
R

raulavi

c# vs 2008

what's the best way...
need to apply changes to some methods in many source files (C#.cs).

(Pseudocode) here is how is done manually:
1. open the source (thisClass.cs)
2. find/locate in source socde
3. change lines (could be extensive code)
4. save
5 open next source file
repeat and repeat and repeat and ...bla,bla

P.D.
don't even think find and replace.

must be something simpler to perform this task.
maybe a third party product ? any problems if version controlled?




TIA- Thanks
 
c# vs 2008

what's the best way...
need to apply changes to  some methods in many source files (C#.cs).

(Pseudocode) here is how is done manually:
1. open the source (thisClass.cs)
2. find/locate  in source socde
3. change lines (could be extensive code)
4. save
5 open next source file
repeat and repeat and repeat and ...bla,bla

P.D.
don't even think  find and replace.

must be something simpler to perform this task.  
maybe a third party product ? any problems if version controlled?

TIA- Thanks

Hi,

What are those changes though?

Can you do a pattern change?
How do you decide what to change?
 
thanks Ignacio:
lets say there are 23 lines instead of one line to replace.

find locates the one line and then manually paste the new code.
(think on what you do when maintaning source code, its just that we have too
many methods alike without refactoring)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top