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

	<PropertyGroup>
		<SearchPath>.</SearchPath>
		<DirSearchPath>..\..\</DirSearchPath>
	</PropertyGroup>

	<ItemGroup>
		<Path Include="$(SearchPath)"/>
	</ItemGroup>
	<Target Name="Find">

		<FindUnder Path="@(Path)" FindFiles="true" FindDirectories="true">
			<Output ItemName="Items" TaskParameter="FoundItems"/>
		</FindUnder>

		<FindUnder Path="$(DirSearchPath)" FindFiles="false" FindDirectories="true">
			<Output ItemName="Dirs" TaskParameter="FoundItems"/>
		</FindUnder>

		<Message Text="Found items: @(Items,'%0d%0a')"/>
		<Message Text="--------------------------------"/>
		<Message Text="Directories : @(Dirs->'%(FullPath)%0d%0a	%(DirectoryName)','%0d%0a')" />
		
		
	</Target>

</Project>

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

Comments

No comments yet.