6

重複の可能性:
NuGetndefライブラリをWindowsPhone8プロジェクトに追加する

WPtoolkitをインストールしようとすると、次のエラーが発生します...

PM> Install-Package WPtoolkit
Successfully installed 'WPtoolkit 4.2012.10.30'.
Successfully uninstalled 'WPtoolkit 4.2012.10.30'.
Install failed. Rolling back...
Install-Package : Could not install package 'WPtoolkit 4.2012.10.30'. You are trying to install this package into a project that targets 'WindowsPhone,Version=v8.0', but the packag
e does not contain any assembly references that are compatible with that framework. For more information, contact the package author.
At line:1 char:1

私が欠けているものはありますか?NuGetも最新バージョンに更新されています...

4

1 に答える 1

11

はは!

FAQのセクションで...

Q-WP8 SDKを使用していますが、NuGetパッケージをインストールしましたが、ツールキットアセンブリの7.1バージョンをインストールしています、またはエラーが発生します–「このパッケージを'WindowsPhone、Version=v8を対象とするプロジェクトにインストールしようとしています。 .0'ですが、パッケージには、そのフレームワークと互換性のあるアセンブリ参照が含まれていません。」</ p>

A – You have an older version of NuGet. 
Install the latest NuGet from www.NuGet.org . Close and restart all the 
instances of Visual Studio. 
Now install the package. It will install correctly. 
WP8 projects are supported from Nuget 2.1 onwards.

その後、xamlページタイプに移動します

于 2012-12-28T19:30:25.967 に答える