Xamarin.ios 无法计算项目的完整依赖关系映射

Xamarin.ios 无法计算项目的完整依赖关系映射,xamarin.ios,mvvmcross,Xamarin.ios,Mvvmcross,我想去掉这个消息,这样构建时间会大大减少(它构建和运行正常)。 此警告显示在mtouch中 警告MT3006:无法计算的完整依赖关系映射 项目这将导致生成时间变慢,因为Xamarin.iOS 无法正确检测需要重建的内容(以及不需要重建的内容) 待重建)。有关详细信息,请查看以前的警告 测试解决方案:helloworld mvvmcross解决方案,带ios项目和pcl(wp8+monotouch+net45+android)+仅pcl中的Microsoft HTTP pcl包+pcl中对Http

我想去掉这个消息,这样构建时间会大大减少(它构建和运行正常)。 此警告显示在mtouch中

警告MT3006:无法计算的完整依赖关系映射 项目这将导致生成时间变慢,因为Xamarin.iOS 无法正确检测需要重建的内容(以及不需要重建的内容) 待重建)。有关详细信息,请查看以前的警告

测试解决方案:helloworld mvvmcross解决方案,带ios项目和pcl(wp8+monotouch+net45+android)+仅pcl中的Microsoft HTTP pcl包+pcl中对HttpClient.GetStringAsync的异步调用

完整日志:

警告MT3005:依赖项'System.Windows,版本=2.0.5.0, 区域性=中性,PublicKeyToken=程序集的7cec85d7bea7798e' 'cirrius.CrossCore,版本=1.0.0.0,区域性=中性, 找不到PublicKeyToken=e16445fd9b451819'。请检查 项目的参考资料

warning MT3005: The dependency 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' of the assembly
warning MT3005: The dependency 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' of the assembly
warning MT3005: The dependency 'System.Net.Primitives, Version=3.9.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of
warning MT3005: The dependency 'System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of the assembly
warning MT3005: The dependency 'System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of
warning MT3006: Could not compute a complete dependency map for the project. This will result in slower build times because
'cirrius.MvvmCross,版本=1.0.0.0,区域性=中性, 找不到PublicKeyToken=e16445fd9b451819'。请检查 项目的参考资料

warning MT3005: The dependency 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' of the assembly
warning MT3005: The dependency 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' of the assembly
warning MT3005: The dependency 'System.Net.Primitives, Version=3.9.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of
warning MT3005: The dependency 'System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of the assembly
warning MT3005: The dependency 'System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of
warning MT3006: Could not compute a complete dependency map for the project. This will result in slower build times because
'cirrium.MvvmCross.Binding,版本=1.0.0.0,区域性=中性, 找不到PublicKeyToken=null。请查看该项目的 参考资料

warning MT3005: The dependency 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' of the assembly
warning MT3005: The dependency 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' of the assembly
warning MT3005: The dependency 'System.Net.Primitives, Version=3.9.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of
warning MT3005: The dependency 'System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of the assembly
warning MT3005: The dependency 'System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of
warning MT3006: Could not compute a complete dependency map for the project. This will result in slower build times because
程序集'Com.Catenum.Intouch.Business,版本=1.0.0.0, 未找到区域性=中性,PublicKeyToken=null。请检查 项目的参考资料

warning MT3005: The dependency 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' of the assembly
warning MT3005: The dependency 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' of the assembly
warning MT3005: The dependency 'System.Net.Primitives, Version=3.9.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of
warning MT3005: The dependency 'System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of the assembly
warning MT3005: The dependency 'System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of
warning MT3006: Could not compute a complete dependency map for the project. This will result in slower build times because
'Com.Catenum.Intouch.Business,版本=1.0.0.0,区域性=中性, 找不到PublicKeyToken=null。请查看该项目的 参考资料

warning MT3005: The dependency 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' of the assembly
warning MT3005: The dependency 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' of the assembly
warning MT3005: The dependency 'System.Net.Primitives, Version=3.9.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of
warning MT3005: The dependency 'System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of the assembly
warning MT3005: The dependency 'System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of
warning MT3006: Could not compute a complete dependency map for the project. This will result in slower build times because
程序集'Com.Catenum.Intouch.Business,版本=1.0.0.0, 未找到区域性=中性,PublicKeyToken=null。请检查 项目的参考资料

warning MT3005: The dependency 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' of the assembly
warning MT3005: The dependency 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' of the assembly
warning MT3005: The dependency 'System.Net.Primitives, Version=3.9.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of
warning MT3005: The dependency 'System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of the assembly
warning MT3005: The dependency 'System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of
warning MT3006: Could not compute a complete dependency map for the project. This will result in slower build times because
Xamarin.iOS无法正确检测需要重建的内容(以及 不需要重建)。请查看以前的警告以了解更多信息 细节


必须确保所有程序集仅引用Xamarin.iOS附带的BCL程序集

例如:

warning MT3005: The dependency 'System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of the assembly 'Com.Catenum.Intouch.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' was not found. Please review the project's references.
Xamarin.iOS没有System.Net.Http v1.5.0.0,而是v2.0.5.0(所有Xamarin.iOS基类库都有v2.0.5.0版本,monotouch.dll本身除外)。解决方案是将Com.Catenum.Intouch.Business重新编译为Xamarin.iOS类库(这通常涉及创建一个新的Xamarin.iOS类库项目,并在中链接源文件),这将确保它包含对System.Net.Http.dll的正确引用

请注意,在Xamarin.iOS 7.0.4中有一个(无害)错误,在某些情况下会导致虚假的MT3005/3006警告。第一个警告可能就是这样:

warning MT3005: The dependency 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' of the assembly 'Cirrious.CrossCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e16445fd9b451819' was not found. Please review the project's references.

由于Xamarin.iOS确实包含该版本的System.Windows程序集。

您必须确保所有程序集仅引用Xamarin.iOS附带的BCL程序集

例如:

warning MT3005: The dependency 'System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of the assembly 'Com.Catenum.Intouch.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' was not found. Please review the project's references.
Xamarin.iOS没有System.Net.Http v1.5.0.0,而是v2.0.5.0(所有Xamarin.iOS基类库都有v2.0.5.0版本,monotouch.dll本身除外)。解决方案是将Com.Catenum.Intouch.Business重新编译为Xamarin.iOS类库(这通常涉及创建一个新的Xamarin.iOS类库项目,并在中链接源文件),这将确保它包含对System.Net.Http.dll的正确引用

请注意,在Xamarin.iOS 7.0.4中有一个(无害)错误,在某些情况下会导致虚假的MT3005/3006警告。第一个警告可能就是这样:

warning MT3005: The dependency 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' of the assembly 'Cirrious.CrossCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e16445fd9b451819' was not found. Please review the project's references.
因为Xamarin.iOS确实包含该版本的System.Windows程序集