PC Review


Reply
Thread Tools Rate Thread

How to apply batch changes to source

 
 
raulavi
Guest
Posts: n/a
 
      13th May 2008
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



 
Reply With Quote
 
 
 
 
Ignacio Machin ( .NET/ C# MVP )
Guest
Posts: n/a
 
      13th May 2008
On May 13, 1:21*pm, raulavi <raul...@discussions.microsoft.com> wrote:
> 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?
 
Reply With Quote
 
raulavi
Guest
Posts: n/a
 
      13th May 2008
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)



"Ignacio Machin ( .NET/ C# MVP )" wrote:

> On May 13, 1:21 pm, raulavi <raul...@discussions.microsoft.com> wrote:
> > 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?
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apply Filter to source of Pivot Table frankie.lau Microsoft Excel Worksheet Functions 2 12th Nov 2009 01:17 AM
Apply batch changes to categories Contact Records in Public Folde Red Microsoft Outlook Discussion 4 14th Jan 2008 05:00 PM
Need *batch* search tool, hopefully with source Keith-Earl Microsoft Dot NET 2 24th Jun 2005 02:55 AM
Apply project to other source? =?Utf-8?B?QXJuZQ==?= Windows XP MovieMaker 4 13th Jun 2005 04:44 PM
Batch Apply permissions to directory..how ? Vassilis Contogeorgos Microsoft Windows 2000 2 4th Sep 2003 12:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:44 PM.