{"id":6145,"date":"2014-08-21T16:16:45","date_gmt":"2014-08-21T07:16:45","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=6145"},"modified":"2014-08-21T16:16:45","modified_gmt":"2014-08-21T07:16:45","slug":"pcl-%e3%81%ae-dll-%e3%81%8b%e3%82%89%e3%83%97%e3%83%ad%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%90%8d%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e3%83%84%e3%83%bc%e3%83%ab%e3%82%92%e5%85%ac%e9%96%8b","status":"publish","type":"post","link":"https:\/\/www.moonmile.net\/blog\/archives\/6145","title":{"rendered":"PCL \u306e DLL \u304b\u3089\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u8868\u793a\u3059\u308b\u30c4\u30fc\u30eb\u3092\u516c\u958b"},"content":{"rendered":"<p>PCL (Portable Class Library) &#8211; Xamarin 3 \u306e\u65b0\u3057\u3044\u30b3\u30fc\u30c9\u5171\u6709\u30c6\u30af\u30cb\u30c3\u30af : XLsoft \u30a8\u30af\u30bb\u30eb\u30bd\u30d5\u30c8 <br \/><a href=\"http:\/\/www.xlsoft.com\/jp\/products\/xamarin\/portable_class_libraries.html\">http:\/\/www.xlsoft.com\/jp\/products\/xamarin\/portable_class_libraries.html<\/a>&nbsp;<br \/>Xamarin\u3068\u3001\u30dd\u30fc\u30bf\u30d6\u30eb\u30fb\u30af\u30e9\u30b9\u30fb\u30e9\u30a4\u30d6\u30e9\u30ea\uff08PCL\uff09 &#8211; Build Insider <br \/><a href=\"http:\/\/www.buildinsider.net\/mobile\/insidexamarin\/13\">http:\/\/www.buildinsider.net\/mobile\/insidexamarin\/13<\/a>&nbsp;<br \/>Xamarin.iOS\/Android \u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b Profile78 \u3068\u306f\u4f55\u304b\uff1f | Moonmile Solutions Blog<br \/> <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/6137\">http:\/\/www.moonmile.net\/blog\/archives\/6137<\/a><\/p>\n<p>\u3072\u3068\u307e\u305a\u3001\u30dd\u30fc\u30bf\u30d6\u30eb\u30af\u30e9\u30b9\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u4f5c\u3063\u3066\u304a\u3051\u3070\u3001Xamarin.iOS\/Android \u9593\u3067\u5171\u6709\u3067\u304d\u308b\u8a33\u3067\u3059\u304c\u3001Windows Store App \u3084 Windows Phone 8.1 \u3092\u542b\u3081\u308b\u3068\u3084\u3084\u3053\u3057\u3044\u308f\u3051\u3067\u3001\u305d\u308c\u306a\u308a\u306b\u53d6\u6368\u9078\u629e\u3057\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<p>\u304c\u3001PCL \u4f5c\u6210\u6642\u306b\u5bfe\u8c61\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u9078\u629e\u305b\u306d\u3070\u306a\u3089\u305a\u3001\u5c06\u6765\u7684\u306a\u672a\u77e5\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u306f\u3069\u3046\u5bfe\u5fdc\u3059\u308b\u306e\u304b\uff1f\u3068\u3044\u3046\u554f\u984c\u3082\u3042\u308a\u3001\u7530\u6df5\uff20XLsoft \u3055\u3093\u306e\u8a18\u4e8b\u306b\u3042\u308b\u901a\u308a\u3001\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u4f9d\u5b58\u3059\u308b\u5834\u5408\u306b\u306f Dependency Injection \u306a\u3069\u3092\u4f7f\u3063\u3066\u3046\u307e\u304f\u5438\u53ce\u3057\u3066\u3084\u3089\u306d\u3070\u3044\u3051\u307e\u305b\u3093\u3002\u3068\u8a00\u3044\u307e\u3059\u304b\u3001<\/p>\n<ul>\n<li>\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u4f9d\u5b58\u3057\u306a\u3044\u90e8\u5206\u3092\u3001PCL \u3067\u66f8\u3044\u3066\u3001TDD \u3059\u308b\u3002<\/li>\n<li>\u6a5f\u7a2e\u4f9d\u5b58\/\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u4f9d\u5b58\u3059\u308b\u5834\u5408\u306f\u3001\u5404\u30b3\u30fc\u30c9\u3067\u66f8\u304f\uff08\u5834\u5408\u306b\u3088\u3063\u3066\u306f Objective-C \u3068\u304b\uff09<\/li>\n<li>\u3064\u306a\u304e\u306e\u90e8\u5206\u3092 Interface\/DI \u3059\u308b\u3002<\/li>\n<\/ul>\n<p>\u3063\u3066\u306a\u611f\u3058\u306e\u5730\u5473\u306a\u4f5c\u696d\u304c\u30d9\u30bf\u30fc\u304b\u306a\u3068\u4eca\u306f\u601d\u3063\u3066\u307e\u3059\u3002\u4f5c\u696d\u91cf\u4e2d\u5fc3\u306b\u8003\u3048\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u30a2\u30d7\u30ea\u4f5c\u6210\u306e\u72b6\u6cc1\u306b\u6700\u9069\u5316\u3001\u3063\u3066\u3068\u3053\u308d\u3067\u3059\u306d\u3002\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u6bce\u306e\u30b3\u30fc\u30c9\u306b\u82e6\u52b4\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u3001Xamarin.Forms \u306a\u3069\u3092\u4f7f\u3046\u30e1\u30ea\u30c3\u30c8\u304c\u4f4e\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>Reflection \u3092\u4f7f\u3063\u3066\u3001\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u5dee\u5206\u3092\u5438\u53ce\u3057\u3088\u3046\u304b\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001Xamarin.Android\/iOS \u81ea\u8eab\u304c\u53d6\u3063\u3066\u3044\u308b TypeForwardedToAttribute \u3092\u4f7f\u3046\u306e\u3082\u3044\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3068\u8003\u3048\u3064\u3064\u3042\u308a\u307e\u3059\u304c\u3002<\/p>\n<h2>\u25a0\u65e2\u5b58\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u3079\u308b<\/h2>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u65b0\u3057\u3044\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u5bfe\u5fdc\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u65b0\u3057\u3044\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u5fdc\u3057\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002\u305d\u308c\u305e\u308c\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u7d44\u307f\u5408\u308f\u305b\u306b\u3088\u3063\u3066\u300cProfile999\u300d\u306a\u611f\u3058\u3067\u756a\u53f7\u304c\u632f\u3063\u3066\u3042\u308b\u3068\u3044\u3046\u5927\u6df7\u4e71\u3076\u308a\u306a\u306e\u3067\u3059\u304c\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c github \u306a\u3069\u306b\u30a2\u30c3\u30d7\u3055\u308c\u3066\u3044\u308c\u3070\uff08\u3042\u308b\u3044\u306f\u793e\u5185\u3067\u6301\u3063\u3066\u3044\u308c\u3070\uff09\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u5207\u308a\u66ff\u3048\u3066\u30ea\u30d3\u30eb\u30c9\u3059\u308c\u3070 ok \u3067\u3059\u3002<\/p>\n<p>\u304c\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u3042\u308c\u3070\u3088\u3044\u306e\u3067\u3059\u304c\u3001DLL \u3057\u304b\u306a\u3044\u72b6\u614b\u306b\u9665\u308b\u3068\u300c\u3053\u308c\u306f\u3001\u3069\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u306a\u306e\u304b\uff1f\u300d\u3063\u3066\u306e\u304c\u554f\u984c\u306b\u306a\u308b&#8230;\u3068\u601d\u3044\u307e\u3059\u3088\u306d\u3002DLL \u3092 Visual Studio \u306b\u53c2\u7167\u8a2d\u5b9a\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u300c\u7570\u306a\u308b\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u306a\u306e\u3067\u3001\u8ffd\u52a0\u3067\u304d\u307e\u305b\u3093\u300d\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3067\u3059\u304c\u3001\u679c\u305f\u3057\u3066\u3001\u305d\u306e DLL \u306f\u4f55\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u306a\u306e\u304b\uff1f<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/08\/image14.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/08\/image_thumb14.png\" width=\"640\" height=\"381\"><\/a><\/p>\n<p>PCL \u306e DLL \u3092\u30d0\u30a4\u30ca\u30ea\u30a8\u30c7\u30a3\u30bf\u3067\u8997\u3044\u3066\u307f\u308b\u3068\u3001\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u304c\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u30d0\u30a4\u30ca\u30ea\u3067\u691c\u7d22\u3057\u3066\u3082\u3088\u3044\u306e\u3067\u3059\u304c\u3001Assembly.LoadFile \u3057\u305f\u5f8c\u306b\u3001CustomAttributes \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u4e2d\u8eab\u3092\u63a2\u3063\u3066\u3084\u308c\u3070\u898b\u3064\u304b\u308a\u307e\u3059\u3002\u578b\u304c System.Runtime.Versioning.TargetFrameworkAttribute \u306a\u3082\u306e\u304c\u898b\u3064\u304b\u308b\u306e\u3067\u3001\u305d\u3053\u306b\u3001&#8221;.NETPortable,Version=v4.5,Profile=Profile7&#8243; \u306a\u66f8\u5f0f\u3067\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u25a0\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u62bd\u51fa\u3059\u308b\u30c4\u30fc\u30eb<\/h2>\n<p><a title=\"https:\/\/github.com\/moonmile\/CheckPCLProfile\" href=\"https:\/\/github.com\/moonmile\/CheckPCLProfile\">https:\/\/github.com\/moonmile\/CheckPCLProfile<\/a> \u306b\u3001\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d\u3068\u3001\u5bfe\u5fdc\u3059\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u8868\u793a\u3055\u305b\u308b\u30c4\u30fc\u30eb\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/08\/image15.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/08\/image_thumb15.png\" width=\"640\" height=\"296\"><\/a><\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067 PCL \u306e DLL \u3092\u6e21\u3059\u3068\u3001\u30d7\u30ed\u30d5\u30a1\u30a4\u540d\u304c\u51fa\u3066\u304d\u307e\u3059\u3002\u305f\u3076\u3093\u3001PCL \u4ee5\u5916\u306e DLL \u3092\u6e21\u3059\u3068\u843d\u3061\u307e\u3059\u3002<\/p>\n<p>AssemblyResolve \u3067\u52d5\u7684\u306b DLL \u3092\u8aad\u307f\u8fbc\u307e\u305b\u3066\u3044\u308b\u306e\u306f FSharp.Core.dll \u306e\u305f\u3081\u3067\u3059\u3002\u3069\u3046\u3084\u3089\u3001F# \u3067\u4f5c\u3063\u305f PCL \u306f CustomAttributes \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u63a2\u7d22\u3059\u308b\u3068\u304d\u306b FSharp.Core \u3092\u4f7f\u3046\u307f\u305f\u3044\u3067\u3059\u306d\u3002\u5927\u62b5\u306e\u5834\u5408\u3001PCL \u306e DLL \u3068\u540c\u3058\u5834\u6240\u306b FSharp.Core.dll \u304c\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u3082\u4e00\u7dd2\u306b\u8aad\u307f\u8fbc\u307e\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u25a0\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u76f4\u63a5\u66f8\u304d\u63db\u3048\u308b\u3068\u3001\u5225\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3067\u8aad\u307f\u8fbc\u3081\u308b\u306e\u304b\uff1f<\/h2>\n<p>\u5b9f\u306f\u3001\u3053\u308c\u304c\u672c\u984c\u3067\u4f5c\u3063\u305f\u30c4\u30fc\u30eb\u3067\u3059\u3002\u30d0\u30a4\u30ca\u30ea\u306b\u300cProfile7\u300d\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u8a33\u3060\u304b\u3089\u3001\u300cProfile78\u300d\u3068\u66f8\u304d\u63db\u3048\u3066\u3057\u307e\u3048\u3070\u3001\u7591\u4f3c\u7684\u306b\u5bfe\u5fdc\u3059\u308b DLL \u304c\u4f5c\u308c\u308b\u306e\u3067\u306f\u306a\u3044\u304b\uff1f\u3063\u3066\u3053\u3068\u3067\u3059\u3002\u540d\u524d\u304c\u9577\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u6587\u5b57\u5217\u9577\u3042\u305f\u308a\u3092\u76f4\u3055\u306a\u3044\u3068\u99c4\u76ee\u306a\u3093\u3067\u3057\u3087\u3046\u304c\u3001\u3053\u308c\u3092\u713c\u3066\u307f\u308b\u3068&#8230;<\/p>\n<p>\u7d50\u8ad6\u306f\u3001\u3060\u3081\u3067\u3057\u305f\u3002Assembly.Load \u6642\u306b\u4f8b\u5916\u304c\u767a\u751f\u3057\u3066\u843d\u3061\u3066\u3057\u307e\u3044\u307e\u3059\u306d\u3002\u3069\u3046\u305b\u3001\u5236\u9650\u3055\u308c\u305f\u30af\u30e9\u30b9\u3084\u30e1\u30bd\u30c3\u30c9\u3057\u304b\u4f7f\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u3001\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d\u3060\u3051\u3092\u5207\u308a\u66ff\u3048\u308c\u3070\u3044\u3044\u3088\u3046\u306a\u6c17\u3082\u3059\u308b\u306e\u3067\u3059\u304c&#8230;\u307e\u3041\u3001\u3053\u308c\u306f\u30ea\u30d3\u30eb\u30c9\u3063\u3066\u3053\u3068\u3067\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PCL (Portable Class Library) &#8211; Xamarin 3 \u306e\u65b0\u3057\u3044\u30b3\u30fc\u30c9\u5171\u6709\u30c6\u30af\u30cb\u30c3\u30af : XLsoft \u30a8\u30af\u30bb\u30eb\u30bd\u30d5\u30c8 http:\/\/www.xlsoft.com\/jp\/produc &hellip; <a href=\"https:\/\/www.moonmile.net\/blog\/archives\/6145\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12,23,62],"tags":[],"class_list":["post-6145","post","type-post","status-publish","format-standard","hentry","category-tools","category-csharp","category-xamarin"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/6145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=6145"}],"version-history":[{"count":0,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/6145\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=6145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=6145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=6145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}