Azure DevOps | YAML | Could not load type ‘System.Management.Automation.PSSnapIn’
I got the following exception while executing a PowerShell script in my Azure DevOps pipeline step. Reason: I used following ‘pwsh‘ task in my YAML file to execute the PowerShell script. For unversed, pwsh is the cross-platform edition of PowerShell built on .NET Core / .NET 5+; by contrast, powershell is the executable name of the […]
Learn more