I have created an application using .net core 3.1 on visual studio 2019 (win 10). It runs very smoothly, but when I run it on my Raspberry Pi 4. It appears the following error message:
Unhandled exception. System.PlatformNotSupportedException: COM Interop is not supported on this
platform.
at System.Threading.Thread.SetApartmentState(ApartmentState state)
at NeatInput.Windows.InputSource.Listen() in C:\Users\NNG\Desktop\NeatInput-
develop\src\NeatInput.Windows\InputSource.cs:line 94
at NeatInput.ConsoleApp.Program.Main(String[] args) in C:\Users\NNG\Desktop\NeatInput-
develop\samples\NeatInput.ConsoleApp\Program.cs:line 118
I tried creating a program "Hello work", publishing it and running it on Raspberry Pi, it works perfectly. This is my project.
If anyone knows the reason, please help me, thanks very much!
