xamarin - 将 Xamarin 表单应用程序更新到最新版本会停止编译
问题描述
我受够了 Visual Studio 2017 Xamarin 工具的后牙。
我让我的应用程序在 UWP 和 Android 中以调试模式编译和运行,适用于 Android 8.0。但是,当我在 Android 上以 Release 模式运行它时,当我尝试从相机拍摄照片时,应用程序崩溃了。
我正在使用 Plugin.Media.Abstractions 来控制相机。我阅读了他们的文档,它说我必须CrossCurrentActivity.Current.Init(this, bundle);
在使用包之前调用,但没有这样的方法。
所以我查看了包管理器,有很多更新(包括插件)。所以我更新了。
然后悲伤开始了。我无法更新,因为我的目标是奥利奥 8.0。所以我更新了 Visual Studio(下载了很多 GB),重新启动,将目标更改为 8.1,并更新了所有内容。
现在我什么都编译不了!我得到的第一个错误是:
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\..\packages\NETStandard.Library.2.0.1\build\NETStandard.Library.targets.
所有引用在解决方案资源管理器中都有一个警告三角形。
我已经关闭了 VS,删除了 .vs 文件夹、obj 和 bin 文件夹,然后重新打开了它——没有任何变化。
我究竟做错了什么?
解决方案
推荐阅读
- java - 带有映射的自定义 JOLT 转换
- python - 星图比嵌套列表理解更快吗?
- python - 在heroku上安装nltk包时出错
- javascript - Javascript添加前导零适用于while循环但不适用于for循环
- json - 具有动态颜色的自定义 GitHub 徽章
- sql - CourseList 表的 SQL 总计数
- java - 扩展已经由 ebean 模型类扩展的类
- create-react-app - 如何在本地运行 create-react-app 的生产版本?Cors/代理问题
- go - 导入 sqlite3 驱动程序时出现问题
- entity-framework - 更新相关实体