зеркало из https://github.com/dotnet/corefx-tools.git
40 строки
1.5 KiB
XML
40 строки
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="12.0" DefaultTargets="BuildAndTest" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Project="dir.props" />
|
|
|
|
<ItemGroup>
|
|
<Project Include="src\dirs.proj" />
|
|
</ItemGroup>
|
|
|
|
<Import Project="dir.targets" />
|
|
|
|
<Import Project="dir.traversal.targets" />
|
|
|
|
<PropertyGroup>
|
|
<TraversalBuildDependsOn>
|
|
BatchRestorePackages;
|
|
$(TraversalBuildDependsOn);
|
|
</TraversalBuildDependsOn>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="BatchRestorePackages">
|
|
<Message Importance="High" Text="Restoring all packages..." />
|
|
<!-- restore all project.jsons in one pass for perf & to avoid concurrency problems with dnu -->
|
|
<!-- include ToolsDir to restore test-runtime\project.json as well -->
|
|
<Exec Command="$(DnuRestoreCommand) $(DnuRestoreDirs)" StandardOutputImportance="Low" CustomErrorRegularExpression="^Unable to locate .*" />
|
|
|
|
<ItemGroup>
|
|
<_allPackagesConfigs Include="$(MSBuildProjectDirectory)\src\**\packages.config"/>
|
|
</ItemGroup>
|
|
<Exec Condition="'@(_allPackagesConfigs)' != ''" Command="$(NugetRestoreCommand) "%(_allPackagesConfigs.FullPath)"" StandardOutputImportance="Low" />
|
|
</Target>
|
|
|
|
<!-- Override RestorePackages from dir.traversal.targets and do a batch restore -->
|
|
<Target Name="RestorePackages" DependsOnTargets="BatchRestorePackages" />
|
|
|
|
<!-- Override clean from dir.traversal.targets and just remove the full BinDir -->
|
|
<Target Name="Clean">
|
|
<RemoveDir Directories="$(BinDir)" />
|
|
</Target>
|
|
|
|
</Project> |