Skip to content

OSX - RuntimeInformation is causing application crashes #3

@NoralK

Description

@NoralK

I am using RuntimeInformation for OS specific code. This is the snippet of code:

if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)){
  // do windows stuff
} else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)){
  // do mac stuff
}

In Avalonia 0.9.13 this works fine but in 0.10.0.preview4 it causes the application to crash on OSX, Windows is find and I do not know about the other platforms. I have found out that Dotnet.Bundle is causing the issue, not Avalonia. In Dotnet.Bulndle 0.9.12 there is no issue but in 0.9.13 it causes the crash.

The OSx Problem Report is here https://pastebin.com/L2TsVVbC

I originally reported this on Avalonia
AvaloniaUI/Avalonia/issues/4596

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions