我正在尝试在我的iOS/Android项目中安装WebSocket4Net。
当我将它添加到Android项目中时,一切都运行得很好。当我尝试将它添加到iOS项目中时,我看到了以下内容...
Install-Package : Could not install package 'WebSocket4Net 0.12'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', but the package does
not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package WebSocket4Net
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand我是不是在一个太老/太新的项目中不能添加这个?
发布于 2015-06-13 16:20:02
您目前正在处理一个统一的iOS项目,而NuGet包不包含这样的程序集。同样,也有一个问题被记录在案,
http://blog.alectucker.com/post/2015/01/19/sqlite-error-with-xamarinios-unified-api.aspx
Kerry已经在代码库中完成了统一iOS支持,
https://github.com/kerryjiang/WebSocket4Net
因此,您可以等待更新的NuGet包,也可以直接使用源代码。
https://stackoverflow.com/questions/30814278
复制相似问题