PDA

View Full Version : Replace in a .vcproj file


abcdetech
10-29-2009, 01:25 PM
What is the best way to replace in a .vcproj file:

<Tool
Name="VCCustomBuildTool"
Description="Performing registration"
CommandLine="regsvr32 /s /c &quot;$(TargetPath)&quot;&#x0D;&#x0A;echo regsvr32 exec. time &gt; &quot;$(OutDir)\regsvr32.trg&quot;&#x0D;&#x0A;echo Execute mtxrereg.exe before using MTS components in MTS&#x0D;&#x0A;"
Outputs="$(OutDir)\regsvr32.trg"
/>


with this:

<Tool
Name="VCCustomBuildTool"
/>


In other words a developer performs a custom build step - registration. I want to get rid of this step on my build machine.

I'm using VBP v. 7.2a

thank you

kinook
10-29-2009, 01:50 PM
See attached sample.

abcdetech
10-29-2009, 03:35 PM
just perfect and quick. THANK YOU