Merge pull request #12787 from briansull/zap-interface
[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   <!-- Use Roslyn Compilers to build -->
87   <Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'!='true' and Exists('$(RoslynPropsFile)') and '$(UseRoslynCompilers)'!='false'" />
88   <Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'=='true' and Exists('$(RoslynPropsFile)')" />
89
90    <ItemGroup> 
91      <!-- Need to escape double forward slash (%2F) or MSBuild will normalize to one slash on Unix. -->
92      <DotnetSourceList Include="$(PackagesDir)AzureTransfer\" Condition="'$(OverwriteCoreClrPackageVersion)' == 'true'" />
93      <DotnetSourceList Include="https:%2F%2Fdotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json" />
94      <DotnetSourceList Include="https:%2F%2Fdotnet.myget.org/F/dotnet-core/api/v3/index.json" />
95      <DotnetSourceList Include="https:%2F%2Fdotnet.myget.org/F/dotnet-buildtools/api/v3/index.json" /> 
96      <DotnetSourceList Include="https:%2F%2Fapi.nuget.org/v3/index.json" />
97    </ItemGroup> 
98   
99   <PropertyGroup Condition="'$(BuildAllProjects)'=='true'">
100     <!-- When we do a traversal build we get all packages up front, don't restore them again -->
101     <RestorePackages>false</RestorePackages>
102   </PropertyGroup>
103
104   <PropertyGroup>
105     <BuildVersionFile>$(BaseIntermediateOutputPath)BuildVersion-$(OfficialBuildId).props</BuildVersionFile>
106   </PropertyGroup>
107
108   <!-- 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 -->
109   <Import Condition="'$(OverwriteCoreClrPackageVersion)' == 'true'" Project="$(BuildVersionFile)" />
110
111   <PropertyGroup Condition="'$(OverwriteCoreClrPackageVersion)' == 'true'">
112     <VersionToRestore Condition="'$(StableVersion)' != ''">$(StableVersion)</VersionToRestore>
113     <VersionToRestore Condition="'$(VersionToRestore)' == ''">$(PackageVersion)-$(PreReleaseLabel)-$(BuildNumberMajor)-$(BuildNumberMinor)</VersionToRestore>
114     <PackageVersionArg>/p:CoreClrPackageVersion=$(VersionToRestore)</PackageVersionArg>
115   </PropertyGroup>
116
117   <!-- Which tests shall we build? Default: Priority 0 tests.
118     At the command-line, the user can specify /p:CLRTestPriorityToBuild=666 (for example), and
119     all tests with CLRTestPriority 666,..., 1 AND 0 will build. 
120     
121     Consequently, specifying CLRTestPriorityToBuild=1 will build all tests with CLRTestPriority 1 and 0.
122     
123     CLRTestPriority = 0 will build only priority 0 cases. 
124   
125     In other words, the CLRTestPriority cases of 0 are *essential* testcases. The higher the value,
126     the less priority we give them.
127    -->
128   <PropertyGroup>
129     <CLRTestPriorityToBuild>0</CLRTestPriorityToBuild>
130   </PropertyGroup>
131   
132 </Project>