2013-01-24 99 views
1

在Visual Studio 2012的程序包管理器控制檯初始化過程中出現以下錯誤。我在Windows 8上。我無法在線找到任何信息,是否有人遇到過相同的問題並找到了解決方案,請讓我知道。Nuget,程序包管理器控制檯(powershell)問題

感謝

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. 

回答

0

其中的Visual Studio版本安裝在機器上? 您是否嘗試將其作爲管理員運行? 也可以嘗試啓用Net3.5根據說明在這裏@Powershell runtime

相關問題