Merge pull request #5773 from Maoni0/grow_card_2
[platform/upstream/coreclr.git] / build.proj
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3   <Import Project="dir.props" />
4
5   <ItemGroup>
6     <!-- We use build.proj instead of dirs.proj so we don't conflict with the TFS build-->
7     <Project Include="src\build.proj" />
8   </ItemGroup>
9
10   <Import Project="dir.targets" />
11
12   <Import Project="dir.traversal.targets" />
13
14   <!-- The following properties are in place to keep the behavior of build.cmd while we work on the dev workflow steps. -->
15   <PropertyGroup>
16     <!-- To disable the restoration of packages, set RestoreDuringBuild=false or pass /p:RestoreDuringBuild=false.-->
17     <RestoreDuringBuild Condition="'$(RestoreDuringBuild)'==''">true</RestoreDuringBuild>
18   </PropertyGroup>
19
20   <!-- Override clean from dir.traversal.targets and just remove the full BinDir -->
21   <Target Name="Clean">
22     <Delete Files="$(BinDir)mscorlib.*" />
23     <Delete Files="$(BinDir)System.Private.CoreLib.*" />
24   </Target>
25
26   <Target Name="RestoreNETCorePlatforms" AfterTargets="Build" Condition="'$(RestoreDuringBuild)'=='true'">
27     <Exec Command="$(DnuRestoreCommand) &quot;$(SourceDir).nuget/init/project.json&quot; --source https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
28   </Target>
29   
30 </Project>