1

我在 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.
4

1 回答 1

0

机器上安装了哪个版本的 Visual Studio?您是否尝试以 Admin 身份运行它?您也可以尝试按照此处的说明启用 Net3.5 @ Powershell 运行时

于 2013-02-02T01:46:43.597 回答