title: Use MSBuild to build multiple solutions and copy the applications to separate folders
body: <p>I have about 80 console applications that I want to build and output to separate target directories under a holding directory.  </p>
  
  <pre><code>c:\builds
    /App1
    /App2
    /app3
  </code></pre>
  
  <p>This script does the mass build, but I cannot seem to get it to either copy the finished output from the release directory to the target directory, nor to send the output there directly.</p>
  
  <pre><code>&lt;Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
  
      &lt;ItemGroup&gt;
      &lt;Solution Include="./**/*.sln"&gt; 
              &lt;Properties&gt;Configuration=Release;Platform=Any CPU&lt;/Properties&gt;
      &lt;/Solution&gt;
      &lt;MyReleaseFiles Include=".\bin\release\*.*" Exclude=".\bin\release\*vshost.exe" /&gt;
      &lt;/ItemGroup&gt;
  
      &lt;PropertyGroup&gt;
          &lt;Configuration Condition=" '$(Configuration)' == '' "&gt;Release&lt;/Configuration&gt;
          &lt;Platform Condition=" '$(Platform)' == '' "&gt;AnyCPU&lt;/Platform&gt;
          &lt;MyReleaseOutput&gt;.\release&lt;/MyReleaseOutput&gt;
          &lt;OutputPath&gt;c:\builds\$(AssemblyName)\&lt;/OutputPath&gt;
          &lt;OutDir&gt;$(OutputPath)&lt;/OutDir&gt;
      &lt;/PropertyGroup&gt;
  
      &lt;Target Name="Build"&gt;
          &lt;MSBuild Projects="@(Solution)" BuildInParallel="true" Targets="Build" /&gt;
          &lt;MakeDir Directories="$(OutputPath)" /&gt;
          &lt;Copy SourceFiles="@(MyReleaseFiles)" DestinationFolder="$(OutputPath)" /&gt;
      &lt;/Target&gt;
  
   &lt;/Project&gt;
  </code></pre>