msbuild contains file in directory
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Demo" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<AllFiles Include="ChildFolder*\**"/>
<SpecificFiles Include="ChildFolder*\somefiletolookfor.txt" />
</ItemGroup>
<Target Name="Demo">
<Message Text="AllFiles: @(AllFiles)"/>
<Message Text="====================="/>
<Message Text="SpecificFiles: @(SpecificFiles)"/>
<Message Text="====================="/>
<Message Text="Specific Dirs: @(SpecificFiles->'%(RootDir)%(Directory)')"/>
<Message Text="====================="/>
</Target>
</Project>