summaryrefslogtreecommitdiff
path: root/tests/dir.common.props
blob: 5c596c0fed864e0315382461c1f8e0d01126ffd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="../dir.common.props" />

  <!-- This file contains common build properties for projects under
       the test tree, and also generated test projects in
       bin/tests. It currently has only those properties that are
       shared between buildtools test projects and SDK-style test
       projects. Eventually every test project should build using the
       SDK. Some test projects still bypass this by importing
       tests/dir.props directly - these should eventually go away. -->

  <PropertyGroup>
    <OSPlatformConfig>$(BuildOS).$(Platform).$(Configuration)</OSPlatformConfig>

    <TestSrcDir>$(CoreclrDir)/tests/src</TestSrcDir>
    <BuildProjectRelativeDir>$([System.String]::Copy('$(MSBuildProjectDirectary)').Replace($(TestSrcDir),''))/$(MSBuildProjectName)</BuildProjectRelativeDir>

    <!-- BaseIntermediateOutputPath is used by the SDK as the location
         for the lock file, and props/targets from nuget packages. -->
    <BaseIntermediateOutputPath>$(CoreclrDir)/bin/tests/obj/$(OSPlatformConfig)/Managed/$(BuildProjectRelativeDir)</BaseIntermediateOutputPath>
    <IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>

    <BaseOutputPath>$(CoreclrDir)/bin/tests/$(OSPlatformConfig)/$(BuildProjectRelativeDir)</BaseOutputPath>
    <OutputPath>$(BaseOutputPath)</OutputPath>

  </PropertyGroup>

</Project>