【发布时间】:2018-01-20 16:28:36
【问题描述】:
通过 NuGet 更新 Xamarin 表单后,我无法再构建我的 Android 应用程序。这是错误:
Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see ... The missing file is ..\..\packages\Xamarin.Forms.2.5.0.121934\build\netstandard1.0\Xamarin.Forms.props
Warning The referenced component 'Xamarin.Forms.Platform.Android' could not be found.
Warning The referenced component '***' could not be found. (for all my references except my own added reference "shared code")
Warning IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.
Warning "\packages\Xamarin.Forms.2.5.0.122203\build\netstandard1.0\Xamarin.Forms.props" cannot be imported again. It was already imported at "\RajaChat.Android\RajaChat.Android.csproj (3,3)". This is most likely a build authoring error. This subsequent import will be ignored.
我已经从堆栈溢出或 xamarin 论坛上的答案中尝试了以下内容:
- 删除包文件夹,让 nuget restore 恢复包
- 将 nuget 控制台与“Update-Package –reinstall”一起使用
- 通过删除 obj 和 bin 文件夹来清理构建和重建
- 降级到 Xamarin.Build.Download 0.4.6
- 卸载并重新加载 Android 项目
没有任何帮助,总是相同的输出...
我打开了TRACEDESIGNTIME 来调试IDE0006 Error,但它只给了我与上面*.designtime.log 相同的错误:
\RajaChat\RajaChat\RajaChat.Android\RajaChat.Android.csproj(308,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see . The missing file is ..\..\packages\Xamarin.Forms.2.5.0.121934\build\netstandard1.0\Xamarin.Forms.props.
【问题讨论】:
标签: visual-studio xamarin xamarin.forms