于是,我就添加NDEF库接近应用程序在Visual Studio 2012为Windows Phone 8的应用程序。 在Package Manager
我检查Allow NuGet to download missing packages during build
,并在Solution Explorer
,我选择Enable NuGet Package Restore
。
到目前为止好,但是当我尝试安装包我得到以下错误:
无法安装程序包“NdefLibrary 0.9.0.1”。 您正在尝试这个软件包安装到该目标“ 的WindowsPhone,版本= 8.0”,但包不包含任何程序集引用是与框架相兼容的项目。 欲了解更多信息,请联系包的作者。
这在我开发框正常工作。 下面是从我的NuGet包管理器在WP8项目的输出:
PM> Install-Package NdefLibrary
You are downloading NdefLibrary from Andreas Jakl, the license agreement to which is available at https://ndef.codeplex.com/license. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'NdefLibrary 0.9.0.1'.
Successfully added 'NdefLibrary 0.9.0.1' to Wp8TestApp.
什么你可能缺少的是更新您的NuGet软件包管理器的最新版本。 转到Visual Studio的文件菜单 - >工具 - >扩展和更新 - >更新 - > Visual Studio库 - >的NuGet - >更新,最后你会需要重新启动。 为什么需要此更新的原因是,附带VS2012 RTM不支持WP8因为WP8的版本的NuGet没有VS2012前未RTM。