* Move generated test_runtime project.json to bin.
* Update helix tasks to point to moved test_runtime files.
* Remove unnecessary TestRuntimeDependenciesJson property.
<!-- Create a collection of all project.json files for dependency updates. -->
<ItemGroup>
- <!-- Skip validation of the test_runtime project created by the test build. -->
- <ProjectJsonFiles Include="$(SourceDir)**\project.json"
- Exclude="$(SourceDir)Common\test_runtime\project.json" />
+ <ProjectJsonFiles Include="$(SourceDir)**\project.json" />
</ItemGroup>
<!-- Which tests shall we build? Default: Priority 0 tests.
</PropertyGroup>
<ItemGroup>
<TestNugetProjectLockFile Include="$(SourceDir)$(Category)\**\project.lock.json"/>
+ <TestNugetProjectLockFile Include="$(TestRuntimeProjectLockJson)"/>
</ItemGroup>
</Target>
<Output TaskParameter="PerfTestAssemblies" ItemName="CoreCLRPerfTest" />
</GetPerfTestAssemblies>
- <PropertyGroup>
- <TestRuntimeDependenciesJson>$(SourceDir)Common\test_runtime\project.json</TestRuntimeDependenciesJson>
- <TestRuntimeProjectLockJson>$(SourceDir)Common\test_runtime\project.lock.json</TestRuntimeProjectLockJson>
- </PropertyGroup>
-
<ItemGroup>
<DnuSourceList Include="$(CORE_ROOT)\.nuget\pkg" />
</ItemGroup>
<!-- Restore the runtime dependencies -->
- <Exec Command="$(DnuRestoreCommand) "$(TestRuntimeDependenciesJson)""
+ <Exec Command="$(DnuRestoreCommand) "$(TestRuntimeProjectJson)""
StandardOutputImportance="Low"
CustomErrorRegularExpression="^Unable to resolve .*"
IgnoreExitCode="true"
</TestRuntimeJsonContents>
</PropertyGroup>
+ <MakeDir Directories="$(TestRuntimeProjectJsonDir)" Condition="!Exists('$(TestRuntimeProjectJsonDir)')" />
+
<!-- Write the file -->
<WriteLinesToFile
- File="src\Common\test_runtime\project.json"
+ File="$(TestRuntimeProjectJson)"
Lines="$(TestRuntimeJsonContents)"
Overwrite="true" />
<DnuSourceList Include="$(CORE_ROOT)\.nuget\pkg" />
</ItemGroup>
<ItemGroup>
- <None Include="project.json" />
+ <None Include="$(TestRuntimeProjectJson)" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
<Target Name="Build" />
<TestPath Condition="'$(TestPath)'==''">$(TestWorkingDir)$(OSPlatformConfig)\$(MSBuildProjectName)/</TestPath>
</PropertyGroup>
+ <!-- Setup the output location for the project.json generated for the local CoreCLR build. -->
+ <PropertyGroup>
+ <TestRuntimeProjectJsonDir>$(BaseOutputPath)\test_runtime</TestRuntimeProjectJsonDir>
+ <TestRuntimeProjectJson>$(TestRuntimeProjectJsonDir)\project.json</TestRuntimeProjectJson>
+ <TestRuntimeProjectLockJson>$(TestRuntimeProjectJsonDir)\project.lock.json</TestRuntimeProjectLockJson>
+ </PropertyGroup>
+
<!-- Default priority building values. -->
<PropertyGroup>
<CLRTestKind Condition="'$(CLRTestKind)' == ' '">BuildAndRun</CLRTestKind>