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> </ItemGroup>
<Target Name="DefinePlatformConstants" BeforeTargets="CoreCompile"> <Target Name="DefinePlatformConstants" BeforeTargets="CoreCompile">
<GetOSPlatform> <Sdk_GetOSPlatform>
<!-- Returns {Linux, macOS, Windows} --> <!-- Returns {Linux, macOS, Windows} -->
<Output TaskParameter="PlatformName" PropertyName="OSPlatform" /> <Output TaskParameter="PlatformName" PropertyName="OSPlatform" />
</GetOSPlatform> </Sdk_GetOSPlatform>
<PropertyGroup> <PropertyGroup>
<DefineConstants>$(DefineConstants);$(OSPlatform.ToUpperInvariant())</DefineConstants> <DefineConstants>$(DefineConstants);$(OSPlatform.ToUpperInvariant())</DefineConstants>