{"action":"opened","issue":{"url":"https://api.github.com/repos/AvaloniaUI/Avalonia/issues/1899","repository_url":"https://api.github.com/repos/AvaloniaUI/Avalonia","labels_url":"https://api.github.com/repos/AvaloniaUI/Avalonia/issues/1899/labels{/name}","comments_url":"https://api.github.com/repos/AvaloniaUI/Avalonia/issues/1899/comments","events_url":"https://api.github.com/repos/AvaloniaUI/Avalonia/issues/1899/events","html_url":"https://github.com/AvaloniaUI/Avalonia/issues/1899","id":360503981,"node_id":"MDU6SXNzdWUzNjA1MDM5ODE=","number":1899,"title":"Avalonia.DotNetCoreRuntime UsePlatformDetect implementation crashes without Avalonia.Desktop reference.","user":{"login":"jkoritzinsky","id":1571408,"node_id":"MDQ6VXNlcjE1NzE0MDg=","avatar_url":"https://avatars2.githubusercontent.com/u/1571408?v=4","gravatar_id":"","url":"https://api.github.com/users/jkoritzinsky","html_url":"https://github.com/jkoritzinsky","followers_url":"https://api.github.com/users/jkoritzinsky/followers","following_url":"https://api.github.com/users/jkoritzinsky/following{/other_user}","gists_url":"https://api.github.com/users/jkoritzinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/jkoritzinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkoritzinsky/subscriptions","organizations_url":"https://api.github.com/users/jkoritzinsky/orgs","repos_url":"https://api.github.com/users/jkoritzinsky/repos","events_url":"https://api.github.com/users/jkoritzinsky/events{/privacy}","received_events_url":"https://api.github.com/users/jkoritzinsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-15T03:45:35Z","updated_at":"2018-09-15T03:45:35Z","closed_at":null,"author_association":"MEMBER","body":"The way that the `UsePlatformDetect` method is written in `Avalonia.DotNetCoreRuntime` will cause it to crash without a reference to `Avalonia.Desktop`. That's because the methods directly reference the windowing/rendering subsystems, so if they are automatically selected and not available, the application will crash on loading the assembly. \r\n\r\nThe implementation in `Avalonia.DotFrameworkRuntime` doesn't have this problem since it dynamically loads the implementation assemblies from the working directory. We can use this implementation for both .NET Core and .NET Framework. However, this implementation prevents AOT applications from correctly working since the assemblies don't have a hard reference.\r\n\r\n"}}
{"actor":{"display_login":"jkoritzinsky"}}