web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Visual Studio 2017: Package Manager Console gives error “The type initializer for ‘System.Management.Automation.Runspaces.InitialSessionState’ threw an exception”

AjitPatra Profile Picture AjitPatra 469

Recently, while working on Visual Studio 2017, when we wanted to launch Package Manager Console from Quick Launch Window, we got the below error message “The type initializer for ‘System.Management.Automation.Runspaces.InitialSessionState’ threw an exception”.

To fix this issue, we installed PowerShell Tools for Visual Studio 2017 from here and restarted Visual Studio. After doing this, we were able to launch the Package Manager Console window.

Hope it helps !!


This was originally posted here.

Comments

*This post is locked for comments