首页 > 解决方案 > xamarin.forms 的 Appcenter 构建失败

问题描述

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]

标签: xamarin.formsxamarin.androidvisual-studio-app-center

解决方案


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


推荐阅读