{"id":420,"date":"2011-11-02T10:00:27","date_gmt":"2011-11-02T14:00:27","guid":{"rendered":"http:\/\/blog.xamarin.com\/?p=420"},"modified":"2011-11-02T10:00:27","modified_gmt":"2011-11-02T14:00:27","slug":"monotouch-native-libraries-made-easy","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/xamarin\/monotouch-native-libraries-made-easy\/","title":{"rendered":"MonoTouch Native Libraries Made Easy"},"content":{"rendered":"<p>\t\t\t\tIn today&#8217;s release of <a title=\"MonoTouch 5.0.1\" href=\"http:\/\/ios.xamarin.com\/Releases\/MonoTouch_5\/MonoTouch_5.0#5.0.1\">MonoTouch 5.0.1<\/a>, we&#8217;ve made it much, much easier to use native libraries from your C# code.<\/p>\n<p>MonoTouch has always allowed developers to <a href=\"http:\/\/docs.xamarin.com\/ios\/advanced_topics\/binding_objective-c_types\">access third-party Objective-C libraries<\/a>. But in the past, it <a href=\"http:\/\/docs.xamarin.com\/ios\/advanced_topics\/linking_native_libraries\">required some familiarity with the way native libraries work<\/a>\u00a0on Unix. It also required both the native library (libMyCuteVisualization.a) and the managed binding (MyCuteVisualization.dll) to be kept in sync.<\/p>\n<p>With MonoTouch 5.0.1, we have solved these problems. If you are binding native libraries, you can now\u00a0use the\u00a0<a href=\"http:\/\/docs.xamarin.com\/ios\/advanced_topics\/binding_objective-c_types\/Binding_Types_Reference_Guide#LinkWithAttribute\">LinkWith attribute<\/a> to declaratively reference the native library as well as the command line options required to use the library.<\/p>\n<p>If you are consuming a native library that someone else has bound, simply reference the managed library from MonoDevelop. That&#8217;s it. No more fussing about with extra command-line arguments and dragging libraries around.<\/p>\n<p>We have updated the public <a href=\"https:\/\/github.com\/mono\/monotouch-bindings\">MonoTouch Bindings<\/a> to use the new LinkWith attribute.\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In today&#8217;s release of MonoTouch 5.0.1, we&#8217;ve made it much, much easier to use native libraries from your C# code. MonoTouch has always allowed developers to access third-party Objective-C libraries. But in the past, it required some familiarity with the way native libraries work\u00a0on Unix. It also required both the native library (libMyCuteVisualization.a) and the [&hellip;]<\/p>\n","protected":false},"author":1917,"featured_media":39167,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[4],"class_list":["post-420","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developers","tag-xamarin-platform"],"acf":[],"blog_post_summary":"<p>In today&#8217;s release of MonoTouch 5.0.1, we&#8217;ve made it much, much easier to use native libraries from your C# code. MonoTouch has always allowed developers to access third-party Objective-C libraries. But in the past, it required some familiarity with the way native libraries work\u00a0on Unix. It also required both the native library (libMyCuteVisualization.a) and the [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/users\/1917"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/comments?post=420"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/420\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media\/39167"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media?parent=420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/categories?post=420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/tags?post=420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}