当前线程不是单线程单元(STA)模式。若要在 UseShellExecute 设置为 True 时启动进程,则要求当前线程处于 STA 模式。请确保 Main 函数标记了 STAThreadAttribute。
Click to search this error in Google
English version
Current thread is not in Single Thread Apartment (STA) mode. Starting a process with UseShellExecute set to True requires the current thread be in STA mode. Ensure that your Main function has STAThreadAttribute marked.