Use the SDK version of GetOSPlatform

This commit is contained in:
Pranav K 2017-03-28 14:27:54 -07:00
parent db7348e776
commit 200d8debc0
1 changed files with 2 additions and 2 deletions

View File

@ -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>