Install-Package:无法安装包WPtoolkit错误

时间:2012-12-28 13:17:11

标签: visual-studio-2012 nuget windows-phone-8

  

可能重复:
  Adding NuGet ndef library to windows phone 8 project

尝试安装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也更新到最新版本......

1 个答案:

答案 0 :(得分:11)

哈哈!

在常见问题解答部分......

问:我有WP8 SDK并且我安装了NuGet包,它仍在安装工具包程序集的7.1版本,或者我收到错误 - “您正在尝试将此软件包安装到以'WindowsPhone为目标的项目中, Version = v8.0',但该包不包含任何与该框架兼容的程序集引用。“

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页面类型

相关问题