Skip to content

Instantly share code, notes, and snippets.

@Wesley-Lomax
Last active August 29, 2015 14:26
Show Gist options
  • Save Wesley-Lomax/d6fc4a15cbc2ec1d36e8 to your computer and use it in GitHub Desktop.
Save Wesley-Lomax/d6fc4a15cbc2ec1d36e8 to your computer and use it in GitHub Desktop.
Configuration file to build multiple solutions from command line
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Solutions Include="..\Project1\Project1.sln" />
<Solutions Include="..\Project2\Pjoject2.sln" />
<Solutions Include="..\Project3\Project3.sln" />
</ItemGroup>
<Target Name="Clean">
<Message Text="Running CLEAN" />
<MSBuild Projects="@(Solutions)" BuildInParallel="true" Targets="Clean" Properties="Configuration=Debug;" />
</Target>
<Target Name="Build" DependsOnTargets="Clean">
<Message Text="Running BUILD" />
<MSBuild Projects="@(Solutions)" BuildInParallel="true" Targets="Build" Properties="Configuration=Debug;" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment