Skip to main content
 首页 » 编程设计

c#之Xamarin Studio iOS 程序集错误

2024年02月13日49dudu

更新我的 Xamarin Studio (iOS) 后,它在尝试构建/调试时出现此错误。

我不知道如何解决这个问题,希望得到一些帮助

错误:

The type 'MonoTouch.UIKit.UIView' is defined in an assembly that is not referenced.  
Consider adding a reference to assembly 'monotouch, Version=0.0.0.0,  
Culture=neutral, PublicKeyToken=null' 

我正在使用“AlexTouch.MBProgressHUD.dll”并将其添加到我的使用中。

请您参考如下方法:

monotouch.dll 的公钥 token 在 Xamarin.iOS 6.2 中发生了变化(它不再是 null)。

您需要重新编译引用 monotouch.dll 的绑定(bind)(或程序集)或使用工具 (from this thread) 更新它们。