Remove intermediate sync for test build (#14775)
[platform/upstream/coreclr.git] / tests / dir.props
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
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)'=='' and '$(OS)'=='OSX'">Unix</OsEnvironment>
8     <OsEnvironment Condition="'$(OsEnvironment)'==''">$(OS)</OsEnvironment>
9   </PropertyGroup>
10   
11   <!-- Build Tools Versions -->
12   <PropertyGroup>
13     <RoslynVersion>1.0.0-rc3-20150510-01</RoslynVersion>
14     <RoslynPackageName>Microsoft.Net.ToolsetCompilers</RoslynPackageName>
15   </PropertyGroup>
16
17   <!--   
18     Switching to the .NET Core version of the BuildTools tasks seems to break numerous scenarios, such as VS intellisense and resource designer   
19     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.   
20    -->   
21   <PropertyGroup>  
22     <RunningOnCore>false</RunningOnCore>
23     <RunningOnCore Condition="'$(MSBuildRuntimeType)' == 'Core'">true</RunningOnCore>
24     <BuildToolsTargetsDesktop>false</BuildToolsTargetsDesktop>
25     <BuildToolsTargetsDesktop Condition="'$(RunningOnCore)' != 'true'">true</BuildToolsTargetsDesktop>
26     <BuildToolsTargets45>$(BuildToolsTargetsDesktop)</BuildToolsTargets45>
27     <RunningOnUnix Condition="('$(RunningOnUnix)' == '') And ('$(MSBuildRuntimeType)' == 'Core')">true</RunningOnUnix>
28   </PropertyGroup>  
29
30   <!-- Common repo directories -->
31   <PropertyGroup>
32     <CopyNuGetImplementations Condition="'$(CopyNuGetImplementations)'==''">false</CopyNuGetImplementations>
33     <ProjectDir>$(MSBuildThisFileDirectory)</ProjectDir>
34     <SourceDir>$(ProjectDir)src\</SourceDir>
35     <PackagesDir>$(ProjectDir)..\packages\</PackagesDir>
36     <ToolsDir Condition="'$(ToolsDir)'==''">$(ProjectDir)..\Tools\</ToolsDir>
37     <DotnetCliPath Condition="'$(DotnetCliPath)'==''">$(ToolsDir)dotnetcli\</DotnetCliPath>
38     <BuildToolsTaskDir Condition="'$(BuildToolsTargets45)' == 'true'">$(ToolsDir)net46\</BuildToolsTaskDir>
39     <OverrideToolHost Condition="'$(OS)' != 'Windows_NT'">$(DotnetCliPath)dotnet</OverrideToolHost>
40     <CSharpCoreTargetsPath Condition="'$(BuildToolsTargetsDesktop)' != 'true'">$(ToolsDir)\Microsoft.CSharp.Core.targets</CSharpCoreTargetsPath>
41     <!-- We don't use any of MSBuild's resolution logic for resolving the framework, so just set these two properties to any folder that exists to skip
42          the GenerateReferenceAssemblyPaths task (not target) and to prevent it from outputting a warning (MSB3644). -->
43     <_TargetFrameworkDirectories Condition="'$(BuildToolsTargetsDesktop)' != 'true'">$(MSBuildThisFileDirectory)/Documentation</_TargetFrameworkDirectories>
44     <_FullFrameworkReferenceAssemblyPaths Condition="'$(BuildToolsTargetsDesktop)' != 'true'">$(MSBuildThisFileDirectory)/Documentation</_FullFrameworkReferenceAssemblyPaths>
45     <ExcludeSigningImport>true</ExcludeSigningImport>
46     <SkipImportILTargets>true</SkipImportILTargets>
47   </PropertyGroup>
48
49   <!-- Common properties -->
50   <PropertyGroup>
51     <RootBinDir>$(__RootBinDir)\</RootBinDir>
52     <RootBinDir Condition="'$(__RootBinDir)'==''">$(ProjectDir)..\bin\</RootBinDir>
53
54     <BinDir>$(__BinDir)\</BinDir>
55     <BinDir Condition="'$(__BinDir)'==''">$(RootBinDir)Product\$(BuildOS).$(BuildArch).$(BuildType)\</BinDir>
56
57     <CoreCLRBinDir>$(RootBinDir)Product\$(__BuildOS).$(__BuildArch).$(__BuildType)\</CoreCLRBinDir>
58   </PropertyGroup>
59
60 <!-- Default Test platform to deploy the netstandard compiled tests to -->
61   <PropertyGroup>
62     <!-- we default TestTFM and FilterToTestTFM to netcoreapp1.0 if they are not explicity defined -->
63     <DefaultTestTFM Condition="'$(DefaultTestTFM)'==''">netcoreapp1.0</DefaultTestTFM>
64     <TestTFM Condition="'$(TestTFM)'==''">$(DefaultTestTFM)</TestTFM>
65     <FilterToTestTFM Condition="'$(FilterToTestTFM)'==''">$(DefaultTestTFM)</FilterToTestTFM>
66   </PropertyGroup>
67
68   <!-- Output paths -->
69   <PropertyGroup>
70     <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)' == ''">$(RootBinDir)obj\</BaseIntermediateOutputPath>
71     <IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(BaseIntermediateOutputPath)\$(BuildOS).$(BuildArch).$(BuildType)</IntermediateOutputPath>
72     <OutputPath Condition="'$(OutputPath)' == ''">$(BaseIntermediateOutputPath)\$(BuildOS).$(BuildArch).$(BuildType)</OutputPath>
73   </PropertyGroup>
74
75     <!-- Targeting Package paths -->
76   <PropertyGroup>
77     <TargetingPackPath Condition="'$(BaseTargetingPackPath)' == ''">$(RootBinDir)TargetingPack\</TargetingPackPath>
78   </PropertyGroup>
79
80   <!-- Import Build tools common props file where repo-independent properties are found -->
81   <Import Condition="Exists('$(ToolsDir)Build.Common.props')" Project="$(ToolsDir)Build.Common.props" />
82
83   <!-- Provides properties for dependency versions and configures dependency verification/auto-upgrade. -->
84   <Import Project="$(ProjectDir)..\dependencies.props" />
85
86   <!-- Add test-specific package restore sources. -->
87   <PropertyGroup>
88     <RestoreSources Condition="'$(DotNetBuildOffline)' != 'true'">
89       https://dotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json;
90       $(RestoreSources)
91     </RestoreSources>
92     <RestoreSources Condition="'$(IntermediateAzureFeed)' != ''">
93       $(IntermediateAzureFeed);
94       $(RestoreSources)
95     </RestoreSources>
96   </PropertyGroup>
97
98   <!-- Use Roslyn Compilers to build -->
99   <Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'!='true' and Exists('$(RoslynPropsFile)') and '$(UseRoslynCompilers)'!='false' and '$(RoslynIncompatibleMsbuildVersion)' != 'true'" />
100   <Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'=='true' and Exists('$(RoslynPropsFile)') and '$(RoslynIncompatibleMsbuildVersion)' != 'true'" />
101
102   <PropertyGroup Condition="'$(BuildAllProjects)'=='true'">
103     <!-- When we do a traversal build we get all packages up front, don't restore them again -->
104     <RestorePackages>false</RestorePackages>
105   </PropertyGroup>
106
107   <PropertyGroup>
108     <BuildVersionFile>$(BaseIntermediateOutputPath)BuildVersion-$(OfficialBuildId).props</BuildVersionFile>
109   </PropertyGroup>
110
111   <!-- If we want to overwrite the desired CoreCLR package version, we need to get the new version from the generated props file in bin/obj -->
112   <Import Condition="'$(OverwriteCoreClrPackageVersion)' == 'true'" Project="$(BuildVersionFile)" />
113
114   <PropertyGroup Condition="'$(OverwriteCoreClrPackageVersion)' == 'true'">
115     <VersionToRestore Condition="'$(StableVersion)' != ''">$(StableVersion)</VersionToRestore>
116     <VersionToRestore Condition="'$(VersionToRestore)' == ''">$(PackageVersion)-$(PreReleaseLabel)-$(BuildNumberMajor)-$(BuildNumberMinor)</VersionToRestore>
117     <PackageVersionArg>/p:CoreClrPackageVersion=$(VersionToRestore)</PackageVersionArg>
118   </PropertyGroup>
119
120   <!-- Which tests shall we build? Default: Priority 0 tests.
121     At the command-line, the user can specify /p:CLRTestPriorityToBuild=666 (for example), and
122     all tests with CLRTestPriority 666,..., 1 AND 0 will build. 
123     
124     Consequently, specifying CLRTestPriorityToBuild=1 will build all tests with CLRTestPriority 1 and 0.
125     
126     CLRTestPriority = 0 will build only priority 0 cases. 
127   
128     In other words, the CLRTestPriority cases of 0 are *essential* testcases. The higher the value,
129     the less priority we give them.
130    -->
131   <PropertyGroup>
132     <CLRTestPriorityToBuild>0</CLRTestPriorityToBuild>
133   </PropertyGroup>
134   
135 </Project>