Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Use the SDK version of GetOSPlatform
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavkm committed Mar 28, 2017
1 parent db7348e commit 200d8de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
</ItemGroup>

<Target Name="DefinePlatformConstants" BeforeTargets="CoreCompile">
<GetOSPlatform>
<Sdk_GetOSPlatform>
<!-- Returns {Linux, macOS, Windows} -->
<Output TaskParameter="PlatformName" PropertyName="OSPlatform" />
</GetOSPlatform>
</Sdk_GetOSPlatform>

<PropertyGroup>
<DefineConstants>$(DefineConstants);$(OSPlatform.ToUpperInvariant())</DefineConstants>
Expand Down

0 comments on commit 200d8de

Please sign in to comment.