I am batching multiple exec
tasks in the build process. Each execution takes around one minute to complete, so I would like to run them in parallel to improve overall build performance.
The target that run multiple exec
tasks:
<Target Name="CreatePackages" DependsOnTargets="Build" AfterTargets="Build">
<Exec Command="SomeExecutable.exe %(SomeGroup.Location) </Exec>
</Target>
The ItemGroup
definition:
<ItemGroup>
<SomeGroup Include="Production">
<Location>SomePath/Production</Location>
</SomeGroup>
<SomeGroup Include="Test">
<Location>SomePath/Test</Location>
</SomeGroup>
<SomeGroup Include="Development">
<Location>SomePath/Development</Location>
</SomeGroup>
</ItemGroup>
How do I run these exec
tasks in parallel?