C
C#2y 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.
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?
2 Replies
Tomas
TomasOP2y ago
Fixed: Installation of Microsoft.PowerShell.SDK as same version System.Management.Automation Worked
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server