相关疑难解决方法(0)

由于"无法初始化PowerShell主机",无法安装nuget包

突然之间,升级Nuget软件包时出现此错误.我遇到过的修复工作都没有.我正在使用Visual Studio 2013.

已经安装了"Newtonsoft.Json 6.0.3".

将"Newtonsoft.Json 6.0.3"添加到Tournaments.Notifications中.

成功将"Newtonsoft.Json 6.0.3"添加到Tournaments.Notifications中.

执行脚本文件'F:\ My Webs\BasketballTournaments\MainBranch\packages\Newtonsoft.Json.6.0.3\tools\install.ps1'.

无法初始化PowerShell主机.如果PowerShell执行策略设置设置为AllSigned,请打开程序包管理器控制台以首先初始化主机.

包管理器控制台

尝试在"FileSystem"提供程序上执行InitializeDefaultDrives操作失败.

如果我等待初始化在控制台中完成,我可以添加一些包.

powershell powershell-2.0 nuget nuget-package visual-studio-2013

171
推荐指数
11
解决办法
10万
查看次数

创建新的MVC项目时出错 - EF和JQuery

每当我创建一个新的MVC项目时,我都会收到错误 - 无法为实体框架和Jquery初始化Powershell主机.错误:以下程序包无法从"C:\ Program Files\Microsoft ASP.NET\ASP.NET MVC 4\Packages"安装

EntityFramework.5.0.0:无法初始化Powershell主机.如果您的powershell执行策略设置设置为AllSigned,请打开包管理器控制台以首先初始化主机.

jQuery.1.7.1.1:无法初始化Powershell主机.如果您的powershell执行策略设置设置为AllSigned,请打开包管理器控制台以首先初始化主机.

我可以删除Entity Framework引用,并手动添加它,这是一个很好的解决方法,但它很烦人,并在某处出现问题的迹象.任何想法在哪里看?

此链接记录了类似的问题和解决方法:http: //social.msdn.microsoft.com/Forums/en/vssetup/thread/c934fed4-e44e-4a06-9e3b-eccb9c8aa8d6

asp.net-mvc jquery entity-framework

21
推荐指数
2
解决办法
7767
查看次数

NuGet无法加载PowerShell

我有一个类似于反射器问题的问题,除了我没有安装Reflector插件,我仍然无法启动NuGet控制台.我在Windows 7 Professional,VS 2010 SP1上运行.

Nuget通过GUI工作正常,但是,例如,我不能在没有控制台的情况下安装*.vsdoc文件.

以下错误是:

The following error occurred while loading the extended type data file: Microsoft.PowerShell.Core, C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2943) : Error in type "System.Security.AccessControl.ObjectSecurity": Exception: Cannot convert the "Microsoft.PowerShell.Commands.SecurityDescriptorCommandsBase" value of type "System.String" to type "System.Type".
The following error occurred while loading the extended type data file: Microsoft.PowerShell.Core, C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2950) : Error in type "System.Security.AccessControl.ObjectSecurity": Exception: Cannot convert the "Microsoft.PowerShell.Commands.SecurityDescriptorCommandsBase" value of type "System.String" to type "System.Type".
The following error occurred while loading the extended type data file: Microsoft.PowerShell.Core, C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2957) …
Run Code Online (Sandbox Code Playgroud)

powershell visual-studio-2010 nuget

12
推荐指数
1
解决办法
8413
查看次数