Skip to content

Commit

Permalink
Ensure MSBuild properties get persisted to child MSBuild tasks, fixes…
Browse files Browse the repository at this point in the history
… a race condition in the build (dotnet/coreclr#8404)

Commit migrated from dotnet/coreclr@b51bcf1
  • Loading branch information
swgillespie authored Dec 5, 2016
1 parent 3db1505 commit 6f21fcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<BuildingForReliabilityFramework>true</BuildingForReliabilityFramework>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<AssemblyName>ReliabilityFramework</AssemblyName>
<SchemaVersion>2.0</SchemaVersion>
Expand Down Expand Up @@ -53,6 +52,6 @@
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />

<Target Name="AfterBuild">
<MSBuild Projects="@(StressTests)" Properties="OutputPath=$(OutDir)\Tests" />
<MSBuild Projects="@(StressTests)" Properties="OutputPath=$(OutDir)\Tests;BuildingForReliabilityFramework=true" />
</Target>
</Project>
2 changes: 1 addition & 1 deletion src/coreclr/tests/src/GC/Stress/Tests/dir.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<DisableProjectBuild Condition="'$(BuildingForReliabilityFramework)' == 'true'">true</DisableProjectBuild>
<DisableProjectBuild Condition="'$(BuildingForReliabilityFramework)' != 'true'">true</DisableProjectBuild>
</PropertyGroup>
<Import Project="..\..\..\dir.targets" />
</Project>

0 comments on commit 6f21fcc

Please sign in to comment.