我在我的C#应用程序中添加了Assemblies(System.Management.Automation和System.Runtime.Remoting)的引用,并在我的项目中使用了powershell接口.但在代码的补充过程中,我发现了一个错误
"命名空间'System.Management.Automation'中不存在类型或命名空间名称'Remoting'"无法找到类型或命名空间名称'PowerShell'
C:\ WINDOWS\assembly\GAC_MSIL\System.Management.Automation\1.0.0.0__31bf3856ad364e35\System.Management.Automation.dll System.Runtime.Remoting C:\ WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Runtime .Remoting.dll
powershell ×1