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