Skip to content

Commit

Permalink
Comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Feb 11, 2017
1 parent 0addb4e commit 27b7e0e
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,23 @@ Copyright (c) .NET Foundation. All rights reserved.
<GenerateResourceMSBuildRuntime>CurrentRuntime</GenerateResourceMSBuildRuntime>
</PropertyGroup>

<!-- -->
<!-- We need to determine if the RuntimeIdentifier was globally set. This check takes advantage of the fact that
global properties cannot be overwritten. -->
<PropertyGroup>
<!-- First, backup the value of the RuntimeIdentifier -->
<GlobalRuntimeIdentifier>$(RuntimeIdentifier)</GlobalRuntimeIdentifier>
<!-- Now set the RuntimeIdentifier to a bogus value. If it is global, this change will be ignored. -->
<RuntimeIdentifier>__________</RuntimeIdentifier>
</PropertyGroup>

<!-- If the RuntimeIdentifier was not set globally, put back its local value. -->
<PropertyGroup Condition=" '$(RuntimeIdentifier)' != '$(GlobalRuntimeIdentifier)'">
<RuntimeIdentifier>$(GlobalRuntimeIdentifier)</RuntimeIdentifier>
<!-- Null out the GlobalRuntimeIdentifier since RuntimeIdentifier is not set globally. -->
<GlobalRuntimeIdentifier></GlobalRuntimeIdentifier>
</PropertyGroup>

<!-- If the RuntimeIdentifier was set globally, pass it to GetTargetFrameworkProperties. -->
<PropertyGroup Condition=" '$(GlobalRuntimeIdentifier)' != '' ">
<AdditionalPropertiesForGetTargetFrameworkProperties>;ReferringRuntimeIdentifier=$(GlobalRuntimeIdentifier)</AdditionalPropertiesForGetTargetFrameworkProperties>
</PropertyGroup>
Expand Down

0 comments on commit 27b7e0e

Please sign in to comment.