System.Management.Automation and System.Runtime.Remoting assembly

I added a link to Assemblies (System.Management.Automation and System.Runtime.Remoting) in my C # application and used the powershell interface in my project. but while complicating the code I get an error

'Type or namespace name' Remoting 'does not exist in namespace' System.Management.Automation 'type or namespace name' PowerShell 'could not be found

C: \ WINDOWS \ build \ 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

+3
source share
1 answer

System.Management.Automation :

C:\Program Files (x86)\Reference Assemblies\Microsoft\WindowsPowerShell\v1.0

PowerShell, System.Management.Automation.Remoting. PowerShell , , #:

using System.Management.Automation;
using System.Management.Automation.Runspaces;
+5

Source: https://habr.com/ru/post/1775814/


All Articles