Merge pull request #11054 from wtgodbe/spacing
[platform/upstream/coreclr.git] / tests / dir.props
1 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2
3   <!--
4     $(OS) is set to Unix/Windows_NT. This comes from an environment variable on Windows and MSBuild on Unix.
5   -->
6   <PropertyGroup>
7     <OsEnvironment Condition="'$(OsEnvironment)'==''">$(OS)</OsEnvironment>
8   </PropertyGroup>
9   
10   <!-- Build Tools Versions -->
11   <PropertyGroup>
12     <RoslynVersion>1.0.0-rc3-20150510-01</RoslynVersion>
13     <RoslynPackageName>Microsoft.Net.ToolsetCompilers</RoslynPackageName>
14   </PropertyGroup>
15
16   <!--   
17     Switching to the .NET Core version of the BuildTools tasks seems to break numerous scenarios, such as VS intellisense and resource designer   
18     as well as runnning the build on mono. Until we can get these sorted out we will continue using the .NET 4.6 version of the tasks.   
19    -->   
20   <PropertyGroup>  
21     <BuildToolsTargets45>true</BuildToolsTargets45>   
22   </PropertyGroup>  
23
24   <!-- Common repo directories -->
25   <PropertyGroup>
26     <CopyNuGetImplementations Condition="'$(CopyNuGetImplementations)'==''">false</CopyNuGetImplementations>
27     <ProjectDir>$(MSBuildThisFileDirectory)</ProjectDir>
28     <SourceDir>$(ProjectDir)src\</SourceDir>
29     <PackagesDir>$(ProjectDir)..\packages\</PackagesDir>
30     <ToolsDir Condition="'$(ToolsDir)'==''">$(ProjectDir)..\Tools\</ToolsDir>
31     <DotnetCliPath Condition="'$(DotnetCliPath)'==''">$(ToolsDir)dotnetcli/</DotnetCliPath>
32     <BuildToolsTaskDir Condition="'$(BuildToolsTargets45)' == 'true'">$(ToolsDir)net46/</BuildToolsTaskDir>
33     <SkipImportILTargets>true</SkipImportILTargets>
34   </PropertyGroup>
35
36   <!-- Common properties -->
37   <PropertyGroup>
38     <RootBinDir>$(__RootBinDir)\</RootBinDir>
39     <RootBinDir Condition="'$(__RootBinDir)'==''">$(ProjectDir)bin\</RootBinDir>
40   </PropertyGroup>
41
42 <!-- Default Test platform to deploy the netstandard compiled tests to -->
43   <PropertyGroup>
44     <!-- we default TestTFM and FilterToTestTFM to netcoreapp1.0 if they are not explicity defined -->
45     <DefaultTestTFM Condition="'$(DefaultTestTFM)'==''">netcoreapp1.0</DefaultTestTFM>
46     <TestTFM Condition="'$(TestTFM)'==''">$(DefaultTestTFM)</TestTFM>
47     <FilterToTestTFM Condition="'$(FilterToTestTFM)'==''">$(DefaultTestTFM)</FilterToTestTFM>
48   </PropertyGroup>
49
50   <!-- Output paths -->
51   <PropertyGroup>
52     <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)' == ''">$(RootBinDir)obj\</BaseIntermediateOutputPath>
53     <IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(BaseIntermediateOutputPath)\$(BuildOS).$(BuildArch).$(BuildType)</IntermediateOutputPath>
54     <OutputPath Condition="'$(OutputPath)' == ''">$(BaseIntermediateOutputPath)\$(BuildOS).$(BuildArch).$(BuildType)</OutputPath>
55   </PropertyGroup>
56
57     <!-- Targeting Package paths -->
58   <PropertyGroup>
59     <TargetingPackPath Condition="'$(BaseTargetingPackPath)' == ''">$(RootBinDir)TargetingPack\</TargetingPackPath>
60   </PropertyGroup>
61
62   <Import Condition="Exists('$(ToolsDir)BuildVersion.targets')" Project="$(ToolsDir)BuildVersion.targets" />
63
64   <!-- Provides properties for dependency versions and configures dependency verification/auto-upgrade. -->
65   <Import Project="$(ProjectDir)..\dependencies.props" />
66
67   <!-- Common nuget properties -->
68   <PropertyGroup>
69     <NuGetToolPath Condition="'$(NuGetToolPath)'==''">$(PackagesDir)NuGet.exe</NuGetToolPath>
70     <NuGetConfigFile Condition="'$(NuGetConfigFile)'==''">$(SourceDir)NuGet.Config</NuGetConfigFile>
71     <NuGetConfigCommandLine>-ConfigFile "$(NuGetConfigFile)"</NuGetConfigCommandLine>
72
73     <NugetRestoreCommand>"$(NuGetToolPath)"</NugetRestoreCommand>
74     <NugetRestoreCommand>$(NugetRestoreCommand) install</NugetRestoreCommand>
75     <!-- Trim off the last slash so that nuget doesn't get confused and say there are illegal characters on
76          the path. -->
77     <NugetRestoreCommand>$(NugetRestoreCommand) -OutputDirectory "$(PackagesDir.TrimEnd('\\'))"</NugetRestoreCommand>
78     <NugetRestoreCommand>$(NugetRestoreCommand) $(NuGetConfigCommandLine)</NugetRestoreCommand>
79     <NugetRestoreCommand>$(NugetRestoreCommand) -Verbosity detailed</NugetRestoreCommand>
80     <NugetRestoreCommand Condition="'$(OsEnvironment)'=='Unix'">mono $(NuGetRestoreCommand)</NugetRestoreCommand>
81   </PropertyGroup>
82
83    <!-- list of nuget package sources passed to dnu --> 
84    <ItemGroup> 
85      <!-- Need to escape double forward slash (%2F) or MSBuild will normalize to one slash on Unix. -->
86      <DnuSourceList Include="https:%2F%2Fdotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json" />
87      <DnuSourceList Include="https:%2F%2Fdotnet.myget.org/F/dotnet-core/api/v3/index.json" /> 
88      <DnuSourceList Include="https:%2F%2Fapi.nuget.org/v3/index.json" /> 
89    </ItemGroup> 
90
91   
92   <!-- list of directories to perform batch restore -->
93   <ItemGroup>
94     <DnuRestoreDir Include="&quot;$(MSBuildProjectDirectory)\src&quot;" />
95   </ItemGroup>
96   
97   <PropertyGroup Condition="'$(BuildAllProjects)'=='true'">
98     <!-- When we do a traversal build we get all packages up front, don't restore them again -->
99     <RestorePackages>false</RestorePackages>
100   </PropertyGroup>
101   
102   <PropertyGroup>
103     <DotnetToolCommand Condition="'$(DotnetToolCommand)'=='' and '$(OsEnvironment)'!='Unix'">$(DotnetCliPath)dotnet.exe</DotnetToolCommand>    
104     <DotnetToolCommand Condition="'$(DotnetToolCommand)'=='' and '$(OsEnvironment)'=='Unix'">$(DotnetCliPath)dotnet</DotnetToolCommand>    
105
106     <DnuRestoreSource>@(DnuSourceList -> '--source %(Identity)', ' ')</DnuRestoreSource>
107     <DnuRestoreDirs>@(DnuRestoreDir -> '%(Identity)', ' ')</DnuRestoreDirs>
108
109     <DnuRestoreCommand>$(DnuRestoreCommand) "$(DotnetToolCommand)"</DnuRestoreCommand>
110     <DnuRestoreCommand>$(DnuRestoreCommand) restore</DnuRestoreCommand>
111     <DnuRestoreCommand>$(DnuRestoreCommand) --packages "$(PackagesDir.TrimEnd('/\'.ToCharArray()))" $(DnuRestoreSource)</DnuRestoreCommand>
112   </PropertyGroup>
113
114   <!-- Which tests shall we build? Default: Priority 0 tests.
115     At the command-line, the user can specify /p:CLRTestPriorityToBuild=666 (for example), and
116     all tests with CLRTestPriority 666,..., 1 AND 0 will build. 
117     
118     Consequently, specifying CLRTestPriorityToBuild=1 will build all tests with CLRTestPriority 1 and 0.
119     
120     CLRTestPriority = 0 will build only priority 0 cases. 
121   
122     In other words, the CLRTestPriority cases of 0 are *essential* testcases. The higher the value,
123     the less priority we give them.
124    -->
125   <PropertyGroup>
126     <CLRTestPriorityToBuild>0</CLRTestPriorityToBuild>
127   </PropertyGroup>
128   
129 </Project>