ios - 发现异常方法未找到:iOS 上的 Microsoft.AspNetCore.Http.Connections.NegotiationResponse
问题描述
该代码似乎适用于Xamarin.Forms中的UWP ,但是当我在iOS上尝试此操作时,出现以下错误
发现异常方法未找到:Microsoft.AspNetCore.Http.Connections.NegotiationResponse Microsoft.AspNetCore.Http.Connections.NegotiateProtocol.ParseResponse
是否需要在iOS中进行更新才能使其正常工作?
我正在使用Microsoft.AspNetcore.SignalrClient v 5.0.4。
这在以前的版本中有效,有什么想法吗?
解决方案
您可能会在这里找到解决方法:
https://github.com/mono/mono/issues/20805#issuecomment-841321110
基本上解决方案是修改 iOS.csproj 文件以包含
<PackageReference Include="System.Buffers">
<Version>4.5.1</Version>
<IncludeAssets>none</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Memory">
<Version>4.5.4</Version>
<IncludeAssets>none</IncludeAssets>
</PackageReference>
就像在这个提交中一样
推荐阅读
- python - 如何提高python中巨大列表的搜索性能?
- spring-reactor - 为什么 ConnectableFlux.connect() 阻塞?
- javascript - 仅在单个组件上添加脚本 - vuejs
- doxygen - 如何从“相关页面”选项卡中删除多个“自述文件”行?
- java - 如何将firestore中的dateTime存储与当前dateTime进行比较?
- asp.net-core - JWT 令牌未正确验证
- python - 使用自定义 Keras 数据生成器和损失函数时地面实况标签的形状(无,无)
- typescript - 如何键入一个函数,该函数返回数组中的单个元素,该数组位于对象的属性中
- mysql - 多个用户可以同时插入服务器数据库吗?
- python - Pygame 改变 blit 的移动速度