Where do I find System.Management.Automation
While working on sample code in C# downloaded from GitHub, I came across following
The purpose of the DLL is to support power shell run time. This means I need to add reference to that in order to be able to use it. When I open my system references I could not find it. In order to resolve it I have found two solutions.
1. Using nuget.org and install package
2. Use local GAC
Your GAC on your PC might provide you alternative solution is
Obviously my preference is the nuget.org source, as it is owned by the PowerShell team, but if you cannot access nuget.org, its nice to have backup location.