Closed SupinePandora43 closed 3 years ago
https://github.com/mellinoe/vk/blob/3977adea87a3bc7075f02f20837498026feda93d/src/vk/Commands.cs#L29 RuntimeInformation.IsOSPlatform(OSPlatform.Linux) returns false
RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
false
System.Environment.OSVersion
use System.OperatingSystem.IsAndroid
System.OperatingSystem.IsAndroid
https://github.com/SupinePandora43/net6-mobile-samples
The Problem
https://github.com/mellinoe/vk/blob/3977adea87a3bc7075f02f20837498026feda93d/src/vk/Commands.cs#L29
RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
returnsfalse
Possible Solutions
Use
System.Environment.OSVersion
NET5 and above
use
System.OperatingSystem.IsAndroid
PR: https://github.com/mellinoe/vk/pull/30
To Reproduce:
https://github.com/SupinePandora43/net6-mobile-samples
migrated from https://github.com/mellinoe/veldrid/issues/365