Merge pull request #6807 from lemmaa/add-options-for-arm-target-test
[platform/upstream/coreclr.git] / tests / 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   <Import Project="$(ToolsDir)VersionTools.targets" Condition="Exists('$(ToolsDir)VersionTools.targets')" />
6
7   <ItemGroup>
8     <Project Include="src\dirs.proj" />
9   </ItemGroup>
10
11   <Import Project="dir.targets" />
12   
13   <Import Project="dir.traversal.targets" />
14   
15   <PropertyGroup>
16     <TraversalBuildDependsOn>
17       BatchRestorePackages;
18       $(TraversalBuildDependsOn);
19     </TraversalBuildDependsOn>
20   </PropertyGroup>
21   
22   <Target Name="BatchRestorePackages" DependsOnTargets="VerifyDependencies">
23     <Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Restoring all packages..." />
24     
25     <!-- restore all project.jsons in one pass for perf & to avoid concurrency problems -->
26     <Exec Command="$(DnuRestoreCommand) $(DnuRestoreDirs)"
27           StandardOutputImportance="Low" />
28           
29     <Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Restoring all packages...Done." />
30   </Target>
31
32   <!-- Task from buildtools that validates dependencies contained in project.json files. -->
33   <UsingTask TaskName="ValidateProjectDependencyVersions" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll" />
34
35   <!-- Tasks from buildtools for easy project.json dependency updates -->
36   <UsingTask TaskName="UpdatePackageDependencyVersion" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll" />
37
38   <Target Name="UpdatePackageDependencyVersion">
39     <UpdatePackageDependencyVersion ProjectJsons="@(ProjectJsonFiles)"
40                                     PackageId="$(PackageId)"
41                                     OldVersion="$(OldVersion)"
42                                     NewVersion="$(NewVersion)" />
43   </Target>
44
45   <!-- Override RestorePackages from dir.traversal.targets and do a batch restore -->
46   <Target Name="RestorePackages" DependsOnTargets="BatchRestorePackages" />
47 </Project>