I'am trying to use (remote) powershell from c#.
I use :
using System.Management.Automation;
using System.Management.Automation.Runspace;
But when I try to build my app I have an error CS0234 (name does not exist in the namespace). I have added the reference of System.Management.
Which way to compile ?
Ps : I find a post where they said to add C:\Program Files (x86)\Reference Assemblies\Microsoft\WindowsPowerShell\v1.0 as a reference but I don't have this path...
PPs : Powershell is fully installed on my computer.
PPPs : Using win10 64 bits