Merge pull request #23052 from CarolEidt/Fix22850
[platform/upstream/coreclr.git] / tests / dir.common.props
1 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2   <Import Project="../dir.common.props" />
3
4   <!-- This file contains common build properties for projects under
5        the test tree, and also generated test projects in
6        bin/tests. It currently has only those properties that are
7        shared between buildtools test projects and SDK-style test
8        projects. Eventually every test project should build using the
9        SDK. Some test projects still bypass this by importing
10        tests/dir.props directly - these should eventually go away. -->
11
12   <PropertyGroup>
13     <OSPlatformConfig>$(BuildOS).$(Platform).$(Configuration)</OSPlatformConfig>
14
15     <TestSrcDir>$(CoreclrDir)/tests/src</TestSrcDir>
16     <BuildProjectRelativeDir>$([System.String]::Copy('$(MSBuildProjectDirectary)').Replace($(TestSrcDir),''))/$(MSBuildProjectName)</BuildProjectRelativeDir>
17
18     <!-- BaseIntermediateOutputPath is used by the SDK as the location
19          for the lock file, and props/targets from nuget packages. -->
20     <BaseIntermediateOutputPath>$(CoreclrDir)/bin/tests/obj/$(OSPlatformConfig)/Managed/$(BuildProjectRelativeDir)</BaseIntermediateOutputPath>
21     <IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
22
23     <BaseOutputPath>$(CoreclrDir)/bin/tests/$(OSPlatformConfig)/$(BuildProjectRelativeDir)</BaseOutputPath>
24     <OutputPath>$(BaseOutputPath)</OutputPath>
25
26   </PropertyGroup>
27
28 </Project>