C#C
C#3y ago
Tomas

❔ System.Management.Automation error

While I trying run powershell with the Automation Nuget addon it print this error:
System.Management.Automation.Runspaces.PSSnapInException
  HResult=0x80131501
  Message=Cannot load PowerShell snap-in Microsoft.PowerShell.Diagnostics because of the following error: Could not load file or assembly 'C:\Users\tomma\source\repos\tommaTweaker\tommaTweaker\bin\Debug\net6.0-windows\runtimes\win\lib\net6.0\Microsoft.PowerShell.Commands.Diagnostics.dll'. The system cannot find the file specified.


How to fix it?
Was this page helpful?