Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何捕获 C# 文件中的 Powershell 脚本文件中引发的异常?我们基本上在配置 runspace 后从 c# 调用 powershlell 脚本文件。Powershell 脚本文件异常被这些文件本身捕获。但我们不知道如何将其传播到 C#。