问题描述
我已经在Visual Studio 2019(Win 10)上使用.net core 3.1创建了一个应用程序。它运行非常平稳,但是当我在RaspBerry Pi 4上运行它时,会出现以下错误消息:
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
我尝试创建一个程序“ Hello work”,将其发布并在RaspBerry Pi上运行,它运行完美。这是我的项目。
如果有人知道原因,请帮助我,非常感谢!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)