c7df88ceb929d345edfb76c40a8a9ae6ba2535dc
[platform/upstream/coreclr.git] / tests / src / dirs.proj
1 <Project ToolsVersion="12.0" DefaultTargets="Build" InitialTargets="RestoreAllPackages;VerifyBuildTools" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2   <Import Project="dir.props" />
3
4   <Target Name="VerifyBuildTools" 
5     Inputs="$(BuildToolsTargetInputs)"
6     Outputs="$(BuildToolsTargetOutputs)"
7     >
8     <Error Condition="!Exists('$(BuildToolsInstallSemaphore)')" 
9       Text="The build tools have not been installed. Please run buildtest.cmd from the root of the repo at least once to get the tools installed." />
10
11     <!-- If we enter this target at all then the inputs are newer then the outputs so give a warning. -->
12     <Warning Text="Looks like there may be an update to the build tools. Please run buildtest.cmd from the root of the repo to refresh the build tools." /> 
13   </Target>
14
15   <Import Project="$(ToolsDir)depending.targets" Condition="Exists('$(ToolsDir)depending.targets')" />
16   <Target Name="RestoreAllPackages">
17     <Message Importance="High" Text="Restoring all package dependencies..." />
18     <CallTarget Targets="EnsureDependencies" />
19   </Target>
20
21
22   <Target Name="ResolveDisabledProjects" BeforeTargets="BuildAllProjects" DependsOnTargets="RestoreAllPackages" >
23     <ItemGroup>
24       <DisabledProjects Include="TestWrappers*\*\*.csproj" />
25     </ItemGroup>
26     <ItemGroup>
27       <Project Include="*\**\*.csproj" Exclude="@(DisabledProjects)"/>
28       <Project Include="*\**\*.ilproj" Exclude="@(DisabledProjects)"/>
29     </ItemGroup>
30   </Target>
31
32   <Import Project="..\dir.traversal.targets" />
33   
34   <!-- Override clean from dir.traversal.targets and just remove the full BinDir -->
35   <Target Name="Clean">
36     <RemoveDir Directories="$(BinDir)" />
37   </Target>
38 </Project>