{"id":8745,"date":"2017-07-29T17:05:57","date_gmt":"2017-07-29T08:05:57","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=8745"},"modified":"2017-07-29T17:08:33","modified_gmt":"2017-07-29T08:08:33","slug":"%e4%bf%ba%e3%81%ae%e3%83%a9%e3%82%ba%e3%83%91%e3%82%a42%e3%81%a7-net-core-2-0%e3%81%aaf%e3%81%8c%e5%8b%95%e3%81%84%e3%81%9f%e3%82%88","status":"publish","type":"post","link":"https:\/\/www.moonmile.net\/blog\/archives\/8745","title":{"rendered":"\u4ffa\u306e\u30e9\u30ba\u30d1\u30a42\u3067.NET Core 2.0\u306aF#\u304c\u52d5\u3044\u305f\u3088"},"content":{"rendered":"<p>\u4ffa\u306e\u30e9\u30ba\u30d1\u30a42\u3067.NET Core 2.0\u304c\u52d5\u304f\u307e\u3067 | Moonmile Solutions Blog<br \/>\n<a href=\"http:\/\/www.moonmile.net\/blog\/archives\/8732\">http:\/\/www.moonmile.net\/blog\/archives\/8732<\/a><\/p>\n<p>\u3067\u306f C# \u304c\u52d5\u3044\u305f\u306e\u3067\u3001\u4eca\u5ea6\u306f F# \u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u624b\u9806\u306f\u3001C# \u306e\u6642\u3068\u4e00\u7dd2\u3067\u3001<\/p>\n<ol>\n<li>Raspberry Pi2\/3\u3067Rasbian\u3092\u7528\u610f\u3059\u308b\u3002<\/li>\n<li>PC\u4e0a\u3067\u3001.NET Core\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308b\u3002<\/li>\n<li>PC\u304b\u3089Raspberry Pi\u306b\u30c7\u30d7\u30ed\u30a4\u3059\u308b\uff08\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u30b3\u30d4\u30fc\u3059\u308b\uff09<\/li>\n<\/ol>\n<p>\u3059\u308c\u3070 ok \u3067\u3059\u3002\u30b3\u30fc\u30c9\u304c F# \u306a\u306e\u3067\u3001\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u30a2\u30bb\u30f3\u30d6\u30ea\u306b\u300cFSharp.Core.dll\u300d\u304c\u542b\u307e\u308c\u3066\u3044\u308c\u3070\u3001\u3042\u3042 F# \u3067\u52d5\u3044\u3066\u3044\u308b\u306d\u3001\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>F#\u306a\u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30d7\u30ea\u3092\u4f5c\u308b<\/h2>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u8a00\u8a9e\u3092 -lang \u3067\u6307\u5b9a\u3057\u3066\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30d7\u30ea\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\ndotnet new console -n hellofs -lang F#\r\n<\/pre>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/07\/dworkblogimage20170729_11org.jpg\"><img decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/07\/dworkblogimage20170729_11thum.jpg\" border=\"0\" \/><\/a><\/p>\n<p>\u3067\u304d\u3042\u304c\u3063\u305f\u30b3\u30fc\u30c9\u306f\u3001\u3053\u3093\u306a\u611f\u3058\u3002\u7686\u3055\u3093\u3001\u898b\u6163\u308c\u305f F# \u306a\u30b3\u30fc\u30c9\u3067\u3059\u3088\u306d :)<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\n\/\/ Learn more about F# at http:\/\/fsharp.org\r\nopen System\r\n&#x5B;&lt;EntryPoint&gt;]\r\nlet main argv =\r\n    printfn &amp;quot;Hello World from F#!&amp;quot;\r\n    0 \/\/ return an integer exit code<\/pre>\n<p>[\/code]<\/p>\n<h2>\u30d3\u30eb\u30c9\u3059\u308b<\/h2>\n<p>\u30d3\u30eb\u30c9\u306f\u3001C# \u3068\u540c\u3058\u3067\u3059\u3002ARM \u7528\u306b -r linux-arm \u306e\u30b9\u30a4\u30c3\u30c1\u3092\u4ed8\u3051\u3066 publish \u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\ndotnet build\r\ndotnet publish -r linux-arm\r\n<\/pre>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/07\/dworkblogimage20170729_12org.jpg\"><img decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/07\/dworkblogimage20170729_12thum.jpg\" border=\"0\" \/><\/a><\/p>\n<h2>\u8ee2\u9001\u3059\u308b<\/h2>\n<p>\u30d3\u30eb\u30c9\u304c\u3067\u304d\u305f\u3089\u3001WinSCP \u3092\u4f7f\u3063\u3066 publish \u30d5\u30a9\u30eb\u30c0\u2015\u3092\u8ee2\u9001\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/07\/dworkblogimage20170729_14org.jpg\"><img decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/07\/dworkblogimage20170729_14thum.jpg\" border=\"0\" \/><\/a><\/p>\n<p>\u3053\u306e\u90e8\u5206\u306f\u3001\u9069\u5f53\u306a\u30d0\u30c3\u30c1\u3092\u4f5c\u3063\u3066\u304a\u304d\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u306d\u3002<\/p>\n<h2>\u5b9f\u884c\u30d5\u30e9\u30b0\u3092\u4ed8\u3051\u308b<\/h2>\n<p>Tera term \u3067 Raspbian \u306b\u63a5\u7d9a\u3057\u3066\u3001chmod +x \u3057\u3066\u5b9f\u884c\u6a29\u9650\u3092\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nchmod +x hellofs\r\n.\/hellfs\r\n<\/pre>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/07\/dworkblogimage20170729_13org.jpg\"><img decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/07\/dworkblogimage20170729_13thum.jpg\" border=\"0\" \/><\/a><\/p>\n<h2>\u3044\u3088\u3044\u3088 asp.net mvc code + F# \u304c\u3067\u304d\u308b\u306e\u304b\uff1f<\/h2>\n<p>\u3068\u601d\u3044\u304d\u3084\u3001\u30d3\u30eb\u30c9\u6642\u306b\u30a8\u30e9\u30fc\u304c\u3067\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/07\/dworkblogimage20170729_15org.jpg\"><img decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/07\/dworkblogimage20170729_15thum.jpg\" border=\"0\" \/><\/a><\/p>\n<p>\u3069\u3046\u3082 Razor \u306e\u30b3\u30fc\u30c9\u51fa\u529b\u3042\u305f\u308a\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306d\u3002\u3053\u306e\u90e8\u5206\u3001\u901a\u5e38\u306e ubuntu \u3067\u3084\u3063\u3066\u3082\u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u3067\u3001\u666e\u901a\u306b\u4e0d\u5177\u5408\u3058\u3083\u306a\u3044\u304b\u306a\u3068\u3002\u30d7\u30ec\u30d3\u30e5\u30fc\u7248\u3060\u3057\u3002<br \/>\n\u78ba\u304b\u30011.1 \u306e\u6642\u306f mvc \u306b\u3057\u3066\u3082 linux \u4e0a\uff08Raspberry Pi\u4e0a\u3058\u3083\u306a\u304f\u3066\u3001x64\u306eUnbuntu\u4e0a\uff09<br \/>\n\u3067\u52d5\u3044\u305f\u306f\u305a\u306a\u306e\u3067\u3001\u3044\u305a\u308c\u76f4\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>dotnet new webapi \u306e\u307b\u3046\u306f\u3001linux-arm \u3067\u3082\u52d5\u304f\u306e\u3067\u3001\u3053\u308c\u306f\u5f8c\u3067\u8a66\u3057\u307e\u3059\u3002\u6b21\u306f\u3001\u305b\u3063\u304b\u304f\u306a\u306e\u3067 GPIO \u3092\u4f7f\u3063\u3066 .net core 2.0 + L\u30c1\u30ab\u306e\u5dfb\u3078\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ffa\u306e\u30e9\u30ba\u30d1\u30a42\u3067.NET Core 2.0\u304c\u52d5\u304f\u307e\u3067 | Moonmile Solutions Blog http:\/\/www.moonmile.net\/blog\/archives\/8732 \u3067\u306f C# \u304c\u52d5\u3044\u305f\u306e\u3067\u3001\u4eca &hellip; <a href=\"https:\/\/www.moonmile.net\/blog\/archives\/8745\">\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":[3,59,67],"tags":[],"class_list":["post-8745","post","type-post","status-publish","format-standard","hentry","category-dev","category-f","category-raspberrypi"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/8745","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=8745"}],"version-history":[{"count":2,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/8745\/revisions"}],"predecessor-version":[{"id":8747,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/8745\/revisions\/8747"}],"wp:attachment":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=8745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=8745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=8745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}