ComponentModel namespace missing with Xamarin binding

Reading Time: 1

20130701-100114.jpgIf you’re compiling a binding from the Monotouch-Bindings github project
using the accompanied makefile and you get the following compiler message:


error CS0234: The type or namespace name ComponentModel' does not exist in the namespaceSystem'. Are you missing an assembly reference?

Then most of the time this can be fixed by adding the following to the compile statement – which starts with $(BTOUCH):


Then run make and watch the birth of a new DLL!