2011-07-12 10 views
3

jqueryとnugetパッケージマネージャの両方を学んでいます。私はオートコンプリートウィジェットを使いたいです。私は "Install-Package jquery"を実行しました。それから私はそれが "Install-Package jquery.ui.combined"だと思います。 jQuery.UI.Widgets.Autocompleteを実行しようとすると動作しません。私は依存関係のように見えるので、コアをインストールしようとしましたが、どちらもうまくいかないでしょう。jqueryオートコンプリートウィジェット用のナゲットパッケージ

PM> Install-Package jQuery.UI.Widgets.Autocomplete 
Attempting to resolve dependency 'jQuery.UI.Core (= 1.8.9)'. 
Attempting to resolve dependency 'jQuery (≥ 1.4.4 && < 1.6)'. 
Attempting to resolve dependency 'jQuery.UI.Core.Widget (= 1.8.9)'. 
Attempting to resolve dependency 'jQuery.UI.Core.Position (= 1.8.9)'. 
Successfully installed 'jQuery 1.4.4'. 
Successfully installed 'jQuery.UI.Core 1.8.9'. 
Successfully installed 'jQuery.UI.Core.Widget 1.8.9'. 
Successfully installed 'jQuery.UI.Core.Position 1.8.9'. 
Successfully installed 'jQuery.UI.Widgets.Autocomplete 1.8.9'. 
Install failed. Rolling back... 
Install-Package : Already referencing a newer version of 'jQuery'. 
At line:1 char:16 
+ Install-Package <<<< jQuery.UI.Widgets.Autocomplete 
    + CategoryInfo   : NotSpecified: (:) [Install-Package], InvalidOperationException 
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand 

I型は、 "get-のパッケージを" 私は、次の

jQuery       1.6.2     
jQuery.UI.Combined    1.8.14    
jQuery.vsdoc     1.6     
Newtonsoft.Json    4.0.2 

は、古いバージョンを探しているオートコンプリートです参照してください?誰かが、これを動作させるためにパッケージをインストールし続けるか、またはそれらをアンインストールして正しい順序で適切なものをインストールする方法について、私を導くことができますか?

答えて

3

インストールしたjQueryのバージョン(1.6.2)は、jQuery.UI.Core(1.8.9)のバージョンが新しくなりました。

  • jQuery.UI.Widgets.Autocomplete 1.8.9は
  • jQuery.UI.Core 1.8.9は1.4.4からのjQueryのバージョンが必要ですが、1.6
  • の下jQuery.UI.Coreのv1.8.9が必要です

まず、すべてのjQueryパッケージをアンインストールしてから、jQuery.UI.Widgets.Autocompleteをインストールします。 NuGetはjQueryの互換バージョンをインストールします。次に、jQuery.UI.Combinedをインストールできます。

関連する問題