0

Xamarin で 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

おそらくこれを追加するには、プロジェクトが古すぎる/新しすぎるのでしょうか?

4

1 に答える 1

1

現在、統合 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 パッケージを待つか、単にソース コードを直接使用するだけです。

于 2015-06-13T08:20:02.443 に答える