Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

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 (#8404)
  • Loading branch information
swgillespie authored Dec 5, 2016
1 parent a0a055b commit b51bcf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/src/GC/Stress/Framework/ReliabilityFramework.csproj
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 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 b51bcf1

Please sign in to comment.