xamarin.forms - 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]
解决方案
在我的情况下 .config 和 .csproj 都有不同版本的软件包,所以我重新安装了 nugets 并且它已经解决了它。
推荐阅读
- c# - 在 Avalonia ItemsControl 中根据 ViewModel 类型选择 DataTemplate
- java - Spring Boot Web:停止当前的 http 请求处理
- swift - 仅针对 Objective-C 导出 Swift var
- javascript - Angular:对象不是 ApiService.saveData() 中的函数
- java - CalendarView 突出显示颜色的问题
- python - 我可以使用哪种算法来确定导致当前状态的一系列动作?
- arrays - 在 MATLAB 中实现两个数组的减法和除法方程
- c# - 如何有效地将 bool 转换为 int?
- google-cloud-platform - 我们可以使用 Cloud Data Fusion 执行 python 脚本吗
- javascript - JavaScript中的两个数组内连接