File: D\a\_work\1\s\bin_\repo\msbuild\eng\TestAssets.targets
Web Access
Project: ..\..\..\src\MSBuild.Bootstrap\MSBuild.Bootstrap.csproj (MSBuildFiles)
<Project>
  <!-- This target creates packages needed for e2e testing. Inputs and outputs are defined to enable incremental builds.
    It must be run after getting bootstrapped msbuild versions because copy operation blocks the dlls.-->
  <PropertyGroup Label="TestAssests">
    <ArtifactsNonShippingPackagesDir>$(ArtifactsBinDir)Microsoft.Build.BuildCheck.UnitTests\CustomChecks</ArtifactsNonShippingPackagesDir>
  </PropertyGroup>
  
  <ItemGroup Label="TestAssets">
    <ProjectsToPack Include="..\Build\Microsoft.Build.csproj"/>
    <ProjectsToPack Include="..\Framework\Microsoft.Build.Framework.csproj"/>
    <ProjectsToPack Include="..\StringTools\StringTools.csproj"/>
  </ItemGroup>
  
  <Target Name="GetSourceFilesForPacking">
    <ItemGroup>
      <SourceFilesForPacking Include="%(ProjectsToPack.RootDir)%(ProjectsToPack.Directory)**\*.cs" />
    </ItemGroup>
  </Target>
  
  <Target Name="MSBuildPackagesForTests"
          AfterTargets="BootstrapFull"
          DependsOnTargets="GetSourceFilesForPacking"
          Inputs="@(ProjectsToPack);@(SourceFilesForPacking)"
          Outputs="$(ArtifactsNonShippingPackagesDir)\Microsoft.Build.$(Version).nupkg;$(ArtifactsNonShippingPackagesDir)\Microsoft.Build.Framework.$(Version).nupkg;$(ArtifactsNonShippingPackagesDir)\Microsoft.NET.StringTools.$(Version).nupkg">
    
    <MSBuild Projects="@(ProjectsToPack)"
             Targets="Pack"
             Properties="PackageOutputPath=$(ArtifactsNonShippingPackagesDir);PackageVersion=$(PackageVersion)"
             BuildInParallel="true">
      <Output TaskParameter="TargetOutputs" ItemName="PackageOutputs" />
    </MSBuild>
    
  </Target>
</Project>