PDA

View Full Version : Replace in File


lherz
10-08-2007, 01:37 PM
First, please excuse my regex ingorance, but I am trying to use the regex function in the replace in file step to update the third element of a build number on a line within a text file. I have been able to get the match that I need, but I am looking for a way to replace a number with that number +1, and am having no muck.

Am I barking up the wrong tree here or am I just not getting the concept?

Any assistance would be greatly appreciated.

kinook
10-08-2007, 02:15 PM
If it's a version field in an AssemblyInfo. or .rc file, you can use the Make VS.NET action to increment.
http://www.visualbuild.com/Manual/vsnetprojectsolutiontab.htm
http://www.visualbuild.com/Manual/vsnetversionstab.htm

Otherwise, see http://www.kinook.com/Forum/showthread.php?threadid=1505

lherz
10-08-2007, 03:35 PM
It looks like the last option will work.

Thanks.