From 7ac47b7437749a00352f72503f56bd805aecf875 Mon Sep 17 00:00:00 2001 From: Dariusz Komosinski Date: Thu, 29 Aug 2019 23:44:04 +0200 Subject: [PATCH] Fix drag and drop not working on .net core 2.2+ --- samples/ControlCatalog.NetCore/Program.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/samples/ControlCatalog.NetCore/Program.cs b/samples/ControlCatalog.NetCore/Program.cs index 5aef0b5520..d683092edf 100644 --- a/samples/ControlCatalog.NetCore/Program.cs +++ b/samples/ControlCatalog.NetCore/Program.cs @@ -4,22 +4,16 @@ using System.Globalization; using System.Linq; using System.Threading; using Avalonia; -using Avalonia.Controls; -using Avalonia.LinuxFramebuffer.Output; -using Avalonia.Skia; using Avalonia.ReactiveUI; using Avalonia.Dialogs; -using System.Collections.Generic; -using System.Threading.Tasks; namespace ControlCatalog.NetCore { static class Program { - + [STAThread] static int Main(string[] args) { - Thread.CurrentThread.TrySetApartmentState(ApartmentState.STA); if (args.Contains("--wait-for-attach")) { Console.WriteLine("Attach debugger and use 'Set next statement'");