0

我创建了一个空的 MVC 2 Empty Web 应用程序,然后使用 NuGet 将我的项目升级到 MVC 4。之后我使用 NuGet 安装 jQuery Mobile,但出现错误。这是整个错误消息

Attempting to resolve dependency 'jquery (≥ 1.6.4)'.
Installing 'jQuery 1.6.4'.
Successfully installed 'jQuery 1.6.4'.
Installing 'jquery.mobile 1.3.2'.
Successfully installed 'jquery.mobile 1.3.2'.
Adding 'jQuery 1.6.4' to MvcApplication1.
Successfully added 'jQuery 1.6.4' to MvcApplication1.
Executing script file 'C:\Users\Administrator\Documents\Visual Studio 2010\Projects\MSCExpress\MvcApplication1\packages\jQuery.1.6.4\Tools\install.ps1'.
Executing script file 'C:\Users\Administrator\Documents\Visual Studio 2010\Projects\MSCExpress\MvcApplication1\packages\jQuery.1.6.4\Tools\uninstall.ps1'.
Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first.
Uninstalling 'jQuery 1.6.4'.
Successfully uninstalled 'jQuery 1.6.4'.
Install failed. Rolling back...
Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first.

我正在使用 Visual Studio 2010。我发现此链接对我的情况已关闭并尝试过,但仍然收到错误消息。任何帮助将不胜感激。

4

1 回答 1

2

自己添加 jQuery mobile 非常简单

只需按照http://jquerymobile.com/download/上的说明进行操作

于 2013-10-03T17:07:29.033 回答