Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can try to use additional metadata for item SolutionToBuild. Some work with recursion and voilà!</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&gt; &lt;Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; &lt;ItemGroup&gt; &lt;SolutionToBuild Include="$(SolutionRoot)\Scribble\levelone.sln"&gt; &lt;DependsOnSolutions&gt;$(SolutionRoot)\Scribble\leveltwo.sln&lt;/DependsOnSolutions&gt; &lt;/SolutionToBuild&gt; &lt;SolutionToBuild Include="$(SolutionRoot)\Scribble\leveltwo.sln"&gt; &lt;DependsOnSolutions&gt;$(SolutionRoot)\Scribble\levelthree.sln;$(SolutionRoot)\TestProject1\TestProject1.sln&lt;/DependsOnSolutions&gt; &lt;/SolutionToBuild&gt; &lt;SolutionToBuild Include="$(SolutionRoot)\Scribble\levelthree.sln" /&gt; &lt;SolutionToBuild Include="$(SolutionRoot)\TestProject1\TestProject1.sln" /&gt; &lt;/ItemGroup&gt; &lt;Target Name="Build"&gt; &lt;MSBuild Projects="$(MSBuildProjectFile)" Targets="BuildSolution" Properties="SolutionFullPath=%(SolutionToBuild.Identity)"/&gt; &lt;/Target&gt; &lt;Target Name="BuildSolution"&gt; &lt;CreateItem Condition="'%(SolutionToBuild.Identity)'=='$(SolutionFullPath)'" Include="%(SolutionToBuild.DependsOnSolutions)"&gt; &lt;Output TaskParameter="Include" ItemName="DependentSolutions" /&gt; &lt;/CreateItem&gt; &lt;Message Text="Building solution $(SolutionFullPath)..." /&gt; &lt;Message Text="Solution $(SolutionFullPath) depends on %(DependentSolutions.Identity)..." Condition="'@(DependentSolutions)'!=''"/&gt; &lt;Message Text="Building dependent solutions..." Condition="'@(DependentSolutions)'!=''"/&gt; &lt;MSBuild Projects="$(MSBuildProjectFile)" Targets="BuildSolution" Properties="SolutionFullPath=%(DependentSolutions.Identity)" Condition="'@(DependentSolutions)'!=''"/&gt; &lt;!-- &lt;MSBuild Projects="$(SolutionFullPath)" /&gt; --&gt; &lt;Message Text="Building solution $(SolutionFullPath)... OK" /&gt; &lt;/Target&gt; &lt;/Project&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload