Using System Interlop to deduce os

This commit is contained in:
Zoe Roux 2021-04-11 20:11:40 +02:00
parent 25e364f674
commit 502fc3052a

View File

@ -22,8 +22,8 @@
<PropertyGroup> <PropertyGroup>
<IsWindows Condition="'$(OS)' == 'Windows_NT'">true</IsWindows> <IsWindows Condition="'$(OS)' == 'Windows_NT'">true</IsWindows>
<IsOSX Condition="'$([MSBuild]::IsOsPlatform(OSX))' == 'true'">true</IsOSX> <IsOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsOSX>
<IsLinux Condition="'$([MSBuild]::IsOsPlatform(Linux))' == 'true'">true</IsLinux> <IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>