哪些程序集包含btouch使用的所有MonoTouch绑定属性

时间:2012-04-07 02:10:41

标签: c# xamarin.ios custom-attributes

我正在尝试在编写ObjC绑定项目时让Intellisense在MonoDevelop中工作。为此,IDE需要知道各种绑定属性的存在位置。

e.g:
[ExportAttribute]似乎存在于monotouch.dll(MonoTouch.Foundation命名空间)中。 [LinkWithAttribute]也在monotouch.dll中(但是MonoTouch.ObjCRuntime名称空间)。

但是,我无法在任何地方找到更专业的属性(EventArgsAttibuteEventNameAttribute等)。请参阅此处记录的完整列表:http://docs.xamarin.com/ios/advanced_topics/binding_objective-c_types/Binding_Types_Reference_Guide

1 个答案:

答案 0 :(得分:2)

这些属性位于binding compiler itself(即/Developer/MonoTouch/usr/lib/btouch/btouch.exe)。

它们习惯于给出btouch指令,说明在构建绑定程序集时要发出什么样的代码;它们运行时使用,因此,不必包含在任何MonoTouch运行时程序集中。

我想为了让IntelliSense正常工作,您可能只需要包含对btouch.exe的引用。