This project is read-only.
<!--
  Sample project file demonstrating the use of the ReplaceInText task.
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" 
		 DefaultTargets="Demo">
	
	<UsingTask AssemblyFile="$(MSBuildExtensionsPath)\Sedodream\Sedodream.MSBuild.Tasks.dll" 
			TaskName="ReplaceInText"/>

	<PropertyGroup>
		<SampleText>Sayed I. Hashimi</SampleText>
	</PropertyGroup>
	
	<Target Name="Demo">
		<ReplaceInText Text="$(SampleText)" TextToFind="I." Replacement="Ibrahim">
			<Output PropertyName="ResultText" TaskParameter="Result"/>
		</ReplaceInText>

		<Message Text="Original text: $(SampleText)"/>
		<Message Text="Replaced text: $(ResultText)"/>
	</Target>

</Project>

Last edited Jun 26, 2007 at 5:24 AM by sayed_hashimi, version 1

Comments

No comments yet.