Browse Source

Actually detect OS instead of relying on GetRuntimeInfo()

pull/1935/head
Nikita Tsukanov 8 years ago
parent
commit
d0c266949c
  1. 2
      src/Shared/PlatformSupport/StandardRuntimePlatformServices.cs

2
src/Shared/PlatformSupport/StandardRuntimePlatformServices.cs

@ -17,7 +17,7 @@ namespace Avalonia.Shared.PlatformSupport
#if __IOS__
new IOSLoader()
#else
standardPlatform.GetRuntimeInfo().OperatingSystem == OperatingSystemType.WinNT
RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
? (IDynamicLibraryLoader)new Win32Loader()
: new UnixLoader()
#endif

Loading…
Cancel
Save