summaryrefslogtreecommitdiff
path: root/src/build.proj
blob: 8b9e3922b85a6c0dd6dbc826517d33ed1b3588d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="..\dir.props"/>
  
  <!-- List the projects that need to be built -->
  <ItemGroup>
    <Project Include="ToolBox\SOS\NETCore\SOS.NETCore.csproj" />
    <Project Include="mscorlib\System.Private.CoreLib.csproj" />
    <Project Include="mscorlib\facade\mscorlib.csproj" />
    <Project Include="mscorlib\ref\mscorlib.csproj" />
  </ItemGroup>

  <Import Project="..\dir.targets" />

  <Import Project="..\dir.traversal.targets" />

  <ItemGroup>
    <BinariesToMove Include="$(BinDir)\facade\mscorlib.dll"/>
  </ItemGroup>

  <Target Name="MovePostBuildBinaries" AfterTargets="Build">
    <Move SourceFiles="@(BinariesToMove)"
        DestinationFolder="$(BinDir)" />
  </Target>

  <ItemGroup>
    <PDBSToMove Include="$(BinDir)\facade\mscorlib.pdb"/>
    <PDBSToMove Include="$(BinDir)System.Private.CoreLib.pdb"/>
  </ItemGroup>

  <PropertyGroup>
    <CoreLibPDBPath>$(BinDir)System.Private.CoreLib.pdb</CoreLibPDBPath>
  </PropertyGroup>

  <Target Name="MovePDB" AfterTargets="Build">
    <Move Condition="Exists($(CoreLibPDBPath))"
        SourceFiles="@(PDBSToMove)"
        DestinationFolder="$(BinDir)PDB" />
  </Target>

</Project>