{"id":84793,"date":"2023-12-09T01:57:44","date_gmt":"2023-12-08T17:57:44","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=84793"},"modified":"2023-12-09T01:57:44","modified_gmt":"2023-12-08T17:57:44","slug":"net-conf-linux","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/net-conf-linux.html","title":{"rendered":".NET Conf 2017\u540e\u521d\u5c1dXamarin Forms 3.0@Linux"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5bf9\u5f88\u591a.NET\u7c89\uff0c.NET Conf 2017\u7684\u4e1c\u897f\u4f30\u8ba1\u63d0\u524d\u4e00\u4e2a\u6708\u90fd\u719f\u6089\u4e86\uff0cXamarin\u7c89\u4f30\u8ba1\u6700\u5927\u60ca\u559c\u4e0d\u662fXamarin Live Player, \u4e5f\u4e0d\u662fXamarin.Forms\u6df7\u5408NativeControl \uff0c\u800c\u662fXamarin.Forms 3.0\uff0c\u56e0\u4e3a\u5b83\u878d\u5165\u5230 Linux\u5e73\u53f0. Xamarin.Forms \u8de8\u5e73\u53f0\uff0c\u4e00\u6b21\u7f16\u5199\u751f\u6210\u539f\u751f\u754c\u9762\u662f\u5728\u8de8\u5e73\u53f0\u79fb\u52a8\u5f00\u53d1\u4e2d\u5f88\u5927\u7684\u4f18\u52bf\u3002\u4ece1.0 \u8bde\u751f\u5f00\u59cb\uff0c\u7528XAML\u6784\u5efa\u591a\u5e73\u53f0\u539f\u751f\u754c\u9762\u5c31\u6210\u4e3a\u4e86\u6211\u9879\u76ee\u4e2d\u5fc5\u4e0d\u53ef\u5c11\u7684\uff0c\u4e5f\u662f\u6bcf\u6b21\u6211\u6f14\u8bb2\u5fc5\u8bb2\u7684\u8bdd\u9898\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u5982\u679c\u8bf4\u5927\u5bb6\u5bc4\u671bXamarin.Forms\u6709\u66f4\u5927\u7684\u8fdb\u6b65\u7a7a\u95f4\u6216\u8005\u4f1a\u662f\u80fd\u66f4\u9ad8\u6548\u7684\u7f16\u5199\u754c\u9762\uff0c\u548c\u878d\u5165\u66f4\u591a\u7684\u539f\u751f\u63a7\u4ef6\u3002\u57285\u6708Build\uff0cXamarin\u5c31\u6ee1\u8db3\u4e86\u5927\u5bb6\u3002\u800c\u8fd9\u6b21\u7ed9\u5927\u5bb6\u66f4\u591a\u7684\u60ca\u559c\u83ab\u8fc7\u4e8eXamarin Forms\u53ef\u4ee5\u8fdb\u5165Linux Desktop\uff0c\u6574\u5408Gtk Sharp\u8ba9\u4f60\u66f4\u5feb\u901f\u7684\u5b8c\u6210\u8de8Desktop\u7684\u5f00\u53d1\u3002\u66f4\u53ef\u559c\u7684\u662f\u5b83\u4e0d\u518d\u662fPPT\u4e0a\u7684\u4e1c\u897f\uff0c\u800c\u662f\u53ef\u4ee5\u628a\u5f04\u7684\u597d\u73a9\u5177\u3002
\n\"\"<\/p>\n

\u6211\u8d81\u7740\u8fd9\u4e2a\u5468\u672b\uff0c\u4eb2\u81ea\u73a9\u4e86\u4e0bXamarin.Forms 3.0 \uff0c\u628a\u4e00\u4e9b\u7ecf\u9a8c\u5206\u4eab\u7ed9\u5927\u5bb6\u3002<\/p>\n

1.\u5b66\u4e60\u8d44\u6599<\/strong><\/div>\n

https:\/\/github.com\/jsuarezruiz\/forms-gtk-progress<\/a> \u8fd9\u91cc\u662f\u6700\u5b98\u65b9\u7684\uff0c\u4e5f\u662f\u6700\u65b9\u4fbf\u4e86\u89e3Xamarin.Forms.gtk\u7684\u5730\u65b9\u3002\u73b0\u9636\u6bb5Xamarin .Forms.gtk\u8fd8\u5728\u5f00\u53d1\u4e2d\uff0c\u4f60\u901a\u8fc7\u8fd9\u91cc\u53ef\u4ee5\u5173\u6ce8\u66f4\u591a\u54a8\u8be2\uff0c\u4e5f\u53ef\u4ee5\u8d21\u732e\u4e00\u4e0b\u4ee3\u7801\u3002\u8bdd\u8bf4\u6211\u4e5f\u51c6\u5907\u5728\u8fd9\u91cc\u505a\u70b9\u8d21\u732e\uff0c\u5c06\u4f1a\u5728\u63a5\u4e0b\u6765\u7684\u65e5\u5b50\u5206\u4eab\u7ed9\u5927\u5bb6\u4e86\u3002<\/p>\n

https:\/\/github.com\/jsuarezruiz\/xamarin-forms-samples\/tree\/gtk<\/a> \u5b98\u65b9\u793a\u4f8b\uff0c\u662f\u73b0\u9636\u6bb5\u6700\u597d\u7684\u6559\u7a0b\u3002<\/p>\n

https:\/\/channel9.msdn.com\/Events\/dotnetConf\/2017\/T326<\/a>\u00a0 .NET Conf 2017\u4ecb\u7ecdXamarin.Forms 3.0 \u7684\u89c6\u9891<\/p>\n

2.\u5f00\u53d1\u73af\u5883<\/strong><\/div>\n

\u5728Linux\u4e0a\u88c5\u597d\u4f60\u7684mono\u548cMonoDevelopIDE(\u603b\u6709\u4e00\u5929\u4f1a\u53ebVisual Studio for Linux), \u5982\u679c\u4f60\u8fd8\u4e0d\u4f1a\uff0c\u90a3\u5c31\u53bbhttp:\/\/www.mono-project.com\/<\/a> \u4e0a\u9762\u6709\u6559\u7a0b\u3002<\/p>\n

Nuget\u914d\u7f6e\uff0c\u7531\u4e8e\u73b0\u5728Xamarin.Forms\u5728\u5f88\u65e9\u7684\u9636\u6bb5\uff0c\u6240\u4ee5\u4e0d\u5b58\u5728\u5728Nuget\u4e0a\uff0c\u4f46\u4f60\u53ef\u4ee5\u901a\u8fc7\u521a\u624d\u63d0\u5230\u7684\u793a\u4f8b\uff0c\u505a\u4e00\u4e2a\u672c\u5730Nuget(Sample\u4e2dNuget \u6587\u4ef6\u5939\u5305\u542b\u4e86Xamarin.Forms 3.0, Xamarin.Forms.GTK\u7b49\u65b0\u7684\u5305\uff09\u3002\u6253\u5f00MonoDevelop\u901a\u8fc7Tools -> Add Custom Tool -> Nuget -> Source \u5f15\u5165\u3002
\n\"\"<\/p>\n

3.Xamarin.Forms\u7684\u9879\u76ee<\/strong><\/div>\n

\u5f00\u53d1\uff0c\u73b0\u5728Windows\/MacOS\u4e0a\u521b\u5efa\u4e00\u4e2aXamarin.Forms\u7684\u9879\u76ee\uff08\u73b0\u5728\u8fd8\u4e0d\u80fd\u5728Linux\u4e0a\u521b\u5efaXamarin.Forms\u9879\u76ee,\u73b0\u5728Xamarin.Forms.GTK\u9879\u76ee\u8fd8\u6ca1\u6709\u6b63\u5f0f\u5f15\u5165Xamarin.Forms\u7684\u89e3\u51b3\u65b9\u6848\u6a21\u7248), \u7136\u540e\u5728Linux\u4e2d\u6253\u5f00\uff0c\u5728\u521b\u5efa\u597d\u7684\u9879\u76ee\u4e2d\u6dfb\u52a0\u4e00\u4e2aGTK#\u9879\u76ee\u3002
\n\"\"<\/p>\n

\u5e76\u628aWindows.cs\u548c\u76f8\u5173\u7684User Interface\u6587\u4ef6\u5939\u5bf9\u5e94\u7684\u754c\u9762\u5220\u9664\u3002\u63a5\u4e0b\u6765\u628a\u89e3\u51b3\u65b9\u6848\u5185\u7684Xamarin.Forms\u66ff\u6362\u62103.0\u7248\u672c\uff08\u5982\u679c\u4f60\u521a\u624d\u6dfb\u52a0Nuget\u6210\u529f\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u4e0b\u56fe\u7684\u5f15\u7528\uff09\uff0c\u5e76\u5bf9\u521b\u5efa\u7684GTK#\u9879\u76ee\u6dfb\u52a0Xamarin.Forms\u5f15\u7528\u3002
\n\"\"<\/p>\n

\u6700\u540e\u8981\u505a\u7684\u4e8b\u662f\u4fee\u6539Program.cs
\n\"\"
\n\"\"<\/p>\n

\u770b\u4e86\u4e0b\u7ed3\u679c\uff0c\u81ea\u6211\u611f\u89c9\u826f\u597d\u3002\u56de\u5934\u518d\u770b\u770b\u9879\u76ee\u8fd8\u662f\u719f\u6089\u7684\u5473\u9053\uff0cC# , XAML , MonoDevelop . All it is cool
\n\"\"<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/blog.csdn.net\/kinfey\/article\/details\/78078597<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/net-conf-linux.html<\/a>\u7f16\u8f91\uff1a\u51af\u632f\u534e\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb \u5bf9\u5f88\u591a.NET\u7c89\uff0c.NET Conf 2017\u7684\u4e1c\u897f\u4f30\u8ba1\u63d0\u524d\u4e00\u4e2a\u6708\u90fd\u719f\u6089\u4e86\uff0cXamarin\u7c89\u4f30\u8ba1\u6700\u5927\u60ca\u559c […]<\/p>\n","protected":false},"author":63,"featured_media":84803,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-84793","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/84793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=84793"}],"version-history":[{"count":7,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/84793\/revisions"}],"predecessor-version":[{"id":85309,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/84793\/revisions\/85309"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/84803"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=84793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=84793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=84793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}