简体   繁体   中英

Nuget, Package Manager console(powershell) issue

I am getting the following error during Package Manager Console initialisation in Visual Studio 2012. I am on windows 8. I couldn't find any information online, has anyone come across the same problem and found a solution yet, please let me know.

Thanks

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.

Which edition of Visual studio is installed on the machine ? Did you try running it as Admin ? Also can you try enabling Net3.5 as per instructions here @ Powershell runtime

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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