【发布时间】: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