Response File Loading
Response files allow specification of a list of files using a single input file (the response file). The response file contains a list of paths to the separate files delimited by new-line characters. The paths may be absolute paths or relative paths, relative to the current WorkingDir.
...
C:\dev\source\file1.bin
..\file2.txt
..\project\file9.cpp
E:\file11.jpg
..\file2.txt
..\project\file9.cpp
E:\file11.jpg
Response files are loaded by stating the path to the response file in attributes which support this feature (SourceFile, OutputFiles and OutputFiles, all related to the Task element). The path should be prefixed with the '@' symbol. E.g.:
<TaskGroup Name="Project 7" DependsOn="Project 5" WorkingDir="C:\Dev\Project7">
<Task Tool="MyTool" SourceFile="@FileList.txt" />
</TaskGroup>
<Task Tool="MyTool" SourceFile="@FileList.txt" />
</TaskGroup>
...
<TaskGroup Name="Project 8" DependsOn="Project 7" WorkingDir="C:\Dev\Project8">
<Task Tool="MyTool" SourceFile="File.cpp" InputFiles="@HeaderList.txt" />
</TaskGroup>
<Task Tool="MyTool" SourceFile="File.cpp" InputFiles="@HeaderList.txt" />
</TaskGroup>
Creating Response files listing source files from an MS Visual Studio Project/Solution
...
BuildConsole <Solution/Workspace/Project File> /DumpSourceFiles=<Response File>
...