473,508 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to apply batch changes to source

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

Jun 27 '08 #1
2 1221
On May 13, 1:21*pm, raulavi <raul...@discussions.microsoft.comwrote:
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?
Jun 27 '08 #2
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.comwrote:
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?
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
7139
by: Troy Heber | last post by:
Can anyone tell me how to force an immediate apply of system based registry changes. I have an application written in C# that updates the registry. However I’m forced to logout and log back in for...
1
2962
by: Trent | last post by:
Hello,everyone. I'm setting a db2 replication environment using UDB version 8.1.5 running on Windows 2000 servers. The source server is on a Windows server with the capture program running while...
17
1952
by: VM | last post by:
In my Windows app, I'm running a batch process that's composed of a FOR loop that'll run 15,000 times (datatable row count), copy cthe data of each row -3 fields- to a struct, and send the strct to...
4
6417
by: Shiraz | last post by:
Hi I'm using Visual Studio Installer to make my installer, and have not as yet figured out a straightforward way to use it to set environmental variables. Amongst the various things I tried, I'm...
4
1621
by: Chuck P | last post by:
I was wondering what practices people have come up with for deployment. I want to precompile the application and encrypt portions of the web.config. In 1.0 I just did a batch file that would...
6
1977
by: Thomas Guettler | last post by:
Hi, I tried PIL for image batch processing. But somehow I don't like it - Font-Selection: You need to give the name of the font file. - Drawing on an image needs a different object that pasting...
3
6695
by: John | last post by:
Hi. I have a number of batch jobs that are ran nightly on our Windows 2000 based Oracle 8.1.7 (soon to be 9i) server. I have these designed just right, so the Windows Scheduled Tasks runs them...
0
7226
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7328
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5631
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5055
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4709
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3199
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3186
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1561
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.