Nuget,Package Manager控制台(powershell)问题

时间:2013-01-24 19:00:34

标签: windows-8 visual-studio-2012 nuget

我在Visual Studio 2012中的程序包管理器控制台初始化期间收到以下错误。我在Windows 8上。我在网上找不到任何信息,有没有人遇到同样的问题并找到解决方案,请让我知道。

由于

The following error occurred while loading the extended type data file: Microsoft.PowerShell.Core, C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2977) : Error in type "System.Security.AccessControl.ObjectSecurity": Exception: The getter method should be public, non void, static, and have one parameter of type PSObject.

The term 'Get-ExecutionPolicy' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

1 个答案:

答案 0 :(得分:0)

机器上安装了哪个版本的Visual Studio? 您是否尝试将其作为管理员运行? 您也可以按照@ Powershell runtime

中的说明尝试启用Net3.5