VS 2015 Xamarin:警告IDE0006加载项目时遇到错误

try*_*tch 9 xamarin.android xamarin visual-studio-2015

我正在使用Xamarin开发Android应用程序.

Visual Studio显示此警告,我不知道它的含义.我按照指示行事,但似乎无法找到temp\\file

    Severity    Code    Description Project File    Line    Suppression State   Detail Description
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.   daijoubu-app        1   Active  To see what caused the issue, please try below.

1. Close Visual Studio
2. Open a Visual Studio Developer Command Prompt
3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true)
4. Delete .vs directory/.suo file
5. Restart VS from the command prompt you set the environment varaible (devenv)
6. Open the solution
7. Check 'C:\Users\Noli\AppData\Local\Temp\\daijoubu-app_*.designtime.log' and look for the failed tasks (FAILED)
Run Code Online (Sandbox Code Playgroud)

完整的源代码可以在github上找到.

try*_*tch 3

我只是按照说明进行操作,但并没有消除警告,尽管我忽略了它,但现在它没有出现。

  1. 重建项目时,我注意到它需要很长时间,因为它会在您的计算机上下载一个 zip 文件%userprofile%/AppData/Local/Xamarin/zips/*

- 确保不要中断构建,因为它将停止下载并稍后导致无效的 zip,从而重现此问题?

  1. 另一个假设是我包含了一个组件(引用了一个dll),然后删除了它,然后重新添加了它。(因为我在智能感知方面遇到了麻烦)

  • 您还记得您引用的 dll 的名称是什么吗?因为就我个人而言(在我的两台计算机中),我对单声道的“System.ObjectModel.dll”有问题。不知何故,VS2015 无法识别它,并在 droid 项目引用下显示一个黄色图标。 (2认同)