Swi*_*arp 4 nfc nuget visual-studio-2012 windows-phone-8 ndef
因此,我尝试在Visual Studio 2012中为Windows Phone 8应用程序添加NDEF库以用于邻近应用程序.在Package Manager
我检查Allow NuGet to download missing packages during build
和Solution Explorer
我选择Enable NuGet Package Restore
.
到目前为止这么好,但是当我尝试安装软件包时,我收到以下错误:
无法安装包' NdefLibrary 0.9.0.1 '.您正在尝试将此软件包安装到以" WindowsPhone,Version = v8.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.
Run Code Online (Sandbox Code Playgroud)
您可能缺少的是将NuGet包管理器更新到最新版本.转到Visual Studio文件菜单 - >工具 - >扩展和更新 - >更新 - > Visual Studio库 - > NuGet - >更新,最后您需要重新启动.需要此更新的原因是VS2012 RTM附带的NuGet版本不支持WP8,因为WP8在VS2012之前没有RTM.
归档时间: |
|
查看次数: |
2013 次 |
最近记录: |