Answers for "msbuild contains file in directory"

0

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>
Posted by: Guest on November-14-2020

Code answers related to "msbuild contains file in directory"

Browse Popular Code Answers by Language