小编Ham*_*nia的帖子

链接时 IAuthenticationHandler 出现错误 XA2006

链接到 SDK 程序集并构建项目时遇到此异常:

Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Could not resolve reference to 'Microsoft.AspNetCore.Http.Features.Authentication.IAuthenticationHandler' (defined in assembly 'Microsoft.AspNetCore.Http, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60') with scope 'Microsoft.AspNetCore.Http.Features, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. When the scope is different from the defining assembly, it usually means that the type is forwarded.

我添加了 Signalr.Client v. 3.1.2 以在 Xamarin 中使用 Signalr。

这是 PCL csproj:

<PackageReference Include="Fody" Version="6.1.1">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
    <PackageReference Include="Forms.Controls.FlexButton" Version="0.11.0" />
    <PackageReference Include="Microsoft.AppCenter" Version="3.0.0" />
    <PackageReference Include="Microsoft.AppCenter.Analytics" Version="3.0.0" />
    <PackageReference Include="Microsoft.AppCenter.Crashes" Version="3.0.0" /> …
Run Code Online (Sandbox Code Playgroud)

c# signalr xamarin.forms asp.net-core-signalr

4
推荐指数
1
解决办法
513
查看次数

标签 统计

asp.net-core-signalr ×1

c# ×1

signalr ×1

xamarin.forms ×1