<Target Name="Build">
...
<MSBuild
Projects="$(MSBuildProjectFile)"
Condition="'@(FilesToCompile)' != ''"
Targets="buildcpp"
Properties="CPPFILE=%(FilesToCompile.FullPath);OBJFILE=$(ObjectFolder)\%(FilesToCompile.Filename).doj;IncludeDirs=$(IncludeDirs)"
/>
FilesToCompile
is an ItemGroup
of all .cpp
files.
When I look at the build log, it shows the target buildcpp
being run for each of the files in CPPFILE
.
I understand that is what I logically want to happen but my question is, what rule of element <MSBuild>
or the MSBuild
schema causes task MSBuild
to be executed for each value of CPPFILE
?
In short, where in the documentation does it state that is what will happen?
I want to pass in an entire ItemGroup
once instead of calling the MSBuild
target once for each item.