Open Basanagoudaglb opened 5 years ago
Why do you call SetApartmentState
? If you need to call it on Windows only, you could achieve that by changing your code to something like:
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
Thread.SetApartmentState(…);
I want my application to be supported in Linux and macOS any suggestions would be appreciated