This project is read-only.
  Sample project file demonstrating the use of the AddMetadata task.
<Project xmlns="" DefaultTargets="Demo">
	<UsingTask AssemblyFile="$(MSBuildExtensionsPath)\Sedodream\Sedodream.MSBuild.Tasks.dll" TaskName="AddMetadata"/>

		<Files Include="Tester\**\*">

	<Target Name="Demo">
		<Message Text="Files: @(Files,'%0d%0a')"/>
		<AddMetadata Items="@(Files)" Metadata="First=Sayed;Middle=Ibrahim;Last=Hashimi">
			<!-- No way to change the existing item, only to make a new one. -->
			<Output ItemName="NewFiles" TaskParameter="ResultItems"/>

		<Message Text="Test values:%0d%0a   @(NewFiles->'%(First) %(Middle) %(Last)','%0d%0a   ')"/>
		<Message Text="Test values: @(NewFiles->'%(RecursiveDir)')"/>


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


No comments yet.