Enable CoreFX test filtering for CoreCLR PRs (#24259)
[platform/upstream/coreclr.git] / dir.common.props
1 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2
3   <!-- This file contains build properties that apply to product
4        projects and test projects. It's imported by
5        tests/dir.common.props, and the global dir.props. -->
6
7   <PropertyGroup>
8     <CoreclrDir>$(MSBuildThisFileDirectory)</CoreclrDir>
9     <PackagesDir>$(CoreclrDir)/packages</PackagesDir>
10   </PropertyGroup>
11
12   <!-- Set default Configuration and Platform -->
13   <PropertyGroup>
14     <BuildArch>$(__BuildArch)</BuildArch>
15     <BuildArch Condition="'$(__BuildArch)'==''">x64</BuildArch>
16     <BuildArch Condition="'$(__BuildArch)' == 'amd64'">x64</BuildArch>
17
18     <BuildType>$(__BuildType)</BuildType>
19     <BuildType Condition="'$(__BuildType)'==''">Debug</BuildType>
20     <BuildType Condition="'$(__BuildType)' == 'debug'">Debug</BuildType>
21     <BuildType Condition="'$(__BuildType)' == 'release'">Release</BuildType>
22     <BuildType Condition="'$(__BuildType)' == 'checked'">Checked</BuildType>
23
24     <BuildOS>$(__BuildOS)</BuildOS>
25     <BuildOS Condition="'$(__BuildOS)' == '' And '$([MSBuild]::IsOSPlatform(Windows))' == 'true'">Windows_NT</BuildOS>
26     <BuildOS Condition="'$(__BuildOS)' == '' And '$([MSBuild]::IsOSPlatform(Linux))' == 'true'">Linux</BuildOS>
27     <BuildOS Condition="'$(__BuildOS)' == '' And '$([MSBuild]::IsOSPlatform(OSX))' == 'true'">OSX</BuildOS>
28     <!-- TODO: converge on one property for BuildOS and __BuildOS, and remove this extra line. -->
29     <__BuildOS>$(BuildOS)</__BuildOS>
30
31     <Configuration Condition="'$(Configuration)' == ''">$(BuildType)</Configuration>
32     <Platform Condition="'$(Platform)' == ''">$(BuildArch)</Platform>
33   </PropertyGroup>
34
35   <PropertyGroup>
36     <RestorePackagesPath>$(PackagesDir)</RestorePackagesPath>
37   </PropertyGroup>
38
39
40 </Project>