Use the SDK version of GetOSPlatform
This commit is contained in:
parent
db7348e776
commit
200d8debc0
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue