繁体   English   中英

Nuget,软件包管理器控制台(PowerShell)问题

[英]Nuget, Package Manager console(powershell) issue

在Visual Studio 2012中的Package Manager控制台初始化期间,出现以下错误。我在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.

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM