Created
November 9, 2014 22:56
-
-
Save byrney/10a48dfb9de1cf894608 to your computer and use it in GitHub Desktop.
MSBUild Batching Up Items
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | |
<PropertyGroup> | |
<DirRoot>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))</DirRoot> | |
</PropertyGroup> | |
<ItemGroup> | |
<TextFiles Include="$(DirRoot)/src/**/*.txt" Condition="'$(Solution)' == ''" /> | |
<TextFiles Include="$(Solution)" /> | |
<Folders Include="@(TextFiles->'%(Directory)')" /> | |
</ItemGroup> | |
<Target Name="Clean" > | |
<CallTarget Targets="CleanFolders" /> | |
</Target> | |
<!-- Clean --> | |
<Target Name="CleanFolders" Inputs="@(Folders)" Outputs="%(Folders.Identity).Dummy" > | |
<Message Text="CleanFolder: %(Folders.Identity)"/> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment