<!--
***********************************************************************************************
Microsoft.NET.Sdk.Workloads.CrossTargeting.targets

WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
          created a backup copy.  Incorrect changes to this file will make it
          impossible to load or build your projects from the command-line or the IDE.

Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project>
  <!--
============================================================
                                     _GetRequiredWorkloads

 Collecting all Workload requirement for each inner build.
============================================================
-->

  <Target Name="_GetRequiredWorkloads"
          DependsOnTargets="_ComputeTargetFrameworkItems"
          Returns="@(_ResolvedSuggestedWorkload)">

    <MSBuild Projects="@(_InnerBuildProjects)"
             Condition="'@(_InnerBuildProjects)' != '' "
             Targets="_GetRequiredWorkloads"
             BuildInParallel="$(BuildInParallel)">
      <Output ItemName="_ResolvedSuggestedWorkload" TaskParameter="TargetOutputs"/>

    </MSBuild>
  </Target>
</Project>
