mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Using System Interlop to deduce os
This commit is contained in:
parent
25e364f674
commit
502fc3052a
@ -22,8 +22,8 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<IsWindows Condition="'$(OS)' == 'Windows_NT'">true</IsWindows>
|
||||
<IsOSX Condition="'$([MSBuild]::IsOsPlatform(OSX))' == 'true'">true</IsOSX>
|
||||
<IsLinux Condition="'$([MSBuild]::IsOsPlatform(Linux))' == 'true'">true</IsLinux>
|
||||
<IsOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsOSX>
|
||||
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user