簡體   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