forked from dotnet/corefx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdirs.proj
46 lines (37 loc) · 1.87 KB
/
dirs.proj
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
41
42
43
44
45
46
<Project ToolsVersion="12.0" DefaultTargets="Build" InitialTargets="RestoreAllPackages;VerifyBuildTools" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="dir.props" />
<Target Name="VerifyBuildTools"
Inputs="$(BuildToolsTargetInputs)"
Outputs="$(BuildToolsTargetOutputs)"
>
<Error Condition="!Exists('$(BuildToolsInstallSemaphore)')"
Text="The build tools have not been installed. Please run build.cmd from the root of the repo at least once to get the tools installed." />
<!-- If we enter this target at all then the inputs are newer then the outputs so give a warning. -->
<Warning Text="Looks like there may be an update to the build tools. Please run build.cmd from the root of the repo to refresh the build tools." />
</Target>
<ItemGroup>
<!-- Include test runtime when restoring packages in EnsureDependencies -->
<PackageConfigs Include="$(ToolsDir)test-runtime\packages.config" />
</ItemGroup>
<Import Project="$(ToolsDir)depending.targets" Condition="Exists('$(ToolsDir)depending.targets')" />
<Target Name="RestoreAllPackages">
<Message Importance="High" Text="Restoring all package dependencies..." />
<CallTarget Targets="EnsureDependencies" />
</Target>
<ItemGroup>
<Project Include="*\src\*.csproj" />
<Project Include="*\tests\**\*.csproj" />
</ItemGroup>
<Import Project="..\dir.traversal.targets" />
<PropertyGroup>
<!-- Explicity set the OutDir as it is used by the packaging targets -->
<OutDir>$(BaseOutputPathWithConfig)</OutDir>
</PropertyGroup>
<Import Project="$(ToolsDir)packages.targets" Condition="Exists('$(ToolsDir)packages.targets')" />
<PropertyGroup Condition="Exists('$(ToolsDir)packages.targets')">
<TraversalBuildDependsOn>
$(TraversalBuildDependsOn);
BuildPackages;
</TraversalBuildDependsOn>
</PropertyGroup>
</Project>