Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MonoTouch binding: How to mark framework library as optionally-linked?

I am trying to build a binding project that should optionally link ios 6.0 framework libraries (AdSupport, Social, Accounts).

Is there any way to mark those libraries as optionally-linked in LinkWithAttribute ?

like image 208
Ben Novoselsky Avatar asked Jan 01 '13 21:01

Ben Novoselsky


1 Answers

Simply use the WeakFrameworks, instead of the Frameworks, in your [LinkWith] attribute. E.g.

[LinkWith (..., Frameworks="Foundation", WeakFrameworks="AdSupport, Social, Accounts")]
like image 127
poupou Avatar answered Sep 19 '22 04:09

poupou