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" />
5 <Import Project="$(ToolsDir)VersionTools.targets" Condition="Exists('$(ToolsDir)VersionTools.targets')" />
8 <Project Include="src\dirs.proj" />
11 <Import Project="dir.targets" />
13 <Import Project="dir.traversal.targets" />
16 <TraversalBuildDependsOn>
18 $(TraversalBuildDependsOn);
19 </TraversalBuildDependsOn>
22 <Target Name="BatchRestorePackages" DependsOnTargets="VerifyDependencies">
23 <Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Restoring all packages..." />
25 <!-- restore all project.jsons in one pass for perf & to avoid concurrency problems -->
26 <Exec Command="$(DnuRestoreCommand) $(DnuRestoreDirs)"
27 StandardOutputImportance="Low" />
29 <Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Restoring all packages...Done." />
32 <!-- Task from buildtools that validates dependencies contained in project.json files. -->
33 <UsingTask TaskName="ValidateProjectDependencyVersions" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll" />
35 <!-- Tasks from buildtools for easy project.json dependency updates -->
36 <UsingTask TaskName="UpdatePackageDependencyVersion" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll" />
38 <Target Name="UpdatePackageDependencyVersion">
39 <UpdatePackageDependencyVersion ProjectJsons="@(ProjectJsonFiles)"
40 PackageId="$(PackageId)"
41 OldVersion="$(OldVersion)"
42 NewVersion="$(NewVersion)" />
45 <!-- Override RestorePackages from dir.traversal.targets and do a batch restore -->
46 <Target Name="RestorePackages" DependsOnTargets="BatchRestorePackages" />