【问题标题】:Appcenter build fails for xamarin.formsxamarin.forms 的 Appcenter 构建失败
【发布时间】:2021-09-06 20:20:54
【问题描述】:

Xamarin.Forms 项目在我结束时成功构建,但在 Appcenter 上构建失败并出现以下错误:

Can not resolve reference: `System.Text.Encodings.Web`, referenced by `IdentityModel`. Please add a NuGet package or assembly reference for `System.Text.Encodings.Web`, or remove the reference to `IdentityModel`. [/Users/runner/work/1/s/Myapp/MyApp.Android/MyApp.Android.csproj]
Can not resolve reference: `Microsoft.Extensions.Logging.Abstractions`, referenced by `IdentityModel.OidcClient`. Please add a NuGet package or assembly reference for `Microsoft.Extensions.Logging.Abstractions`, or remove the reference to `IdentityModel.OidcClient`. [/Users/runner/work/1/s/MyApp/MyApp.Android/MyApp.Android.csproj]
Can not resolve reference: `System.Collections.Immutable`, referenced by `Stripe.net`. Please add a NuGet package or assembly reference for `System.Collections.Immutable`, or remove the reference to `Stripe.net`. [/Users/runner/work/1/s/MyApp/MyApp.Android/MyApp.Android.csproj]

【问题讨论】:

  • 您是否尝试过错误消息中建议的修复方法?
  • @Jason 我已经重新安装了 nugets,它已经解决了它,实际上 .config 和 .csproj 都有不同版本的包
  • “它已解决” - 如果这意味着您的问题已解决,请在下面添加一个答案,描述解决您的问题的原因,所以其他人知道解决方案是什么。谢谢。

标签: xamarin.forms xamarin.android visual-studio-app-center


【解决方案1】:

在我的情况下 .config 和 .csproj 都有不同版本的包,所以我重新安装了 nugets 并且它已经解决了它。

【讨论】:

    猜你喜欢
    • 2022-08-02
    • 2022-06-25
    • 2019-12-13
    • 2021-06-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-12
    • 1970-01-01
    相关资源
    最近更新 更多