Problems with Package Manager Console

I installed the beta version of Asp.net MVC 3, which also installs NuPack, but when I open the project in Visual Studio 2010 Express, the package manager console gives me this error message:

System.TypeLoadException: Could not load type 'System.Management.Automation.Runspaces.InitialSessionState' from assembly 'System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
   at NuPackConsole.Host.PowerShell.Implementation.PowerShellHostProvider.CreateHost(IConsole console)
   at NuPackConsole.Implementation.PowerConsole.HostInfo.get_WpfConsole()
   at NuPackConsole.Implementation.PowerConsoleToolWindow.get_WpfConsole()System.InvalidOperationException: Can't start ConsoleDispatcher. Host is null.
   at NuPackConsole.Implementation.Console.ConsoleDispatcher.Start()
   at NuPackConsole.Implementation.PowerConsoleToolWindow.MoveFocus(FrameworkElement consolePane)

I was able to download packages using the "Add Package Link" menu option, but not using the Package Manager Console. Please, what's the problem? Thank.

+3
source share
2 answers

Download the Core Framework Core Framework , which contains PowerShell 2.

Use the one that matches your version of Windows.

, , PowerShell, // ( , )... done:)

+9

NuPack PowerShell 2.0, , . Windows XP, .

+2

Source: https://habr.com/ru/post/1768750/


All Articles