{"id":435,"date":"2023-08-02T23:30:04","date_gmt":"2023-08-03T06:30:04","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/?p=435"},"modified":"2023-08-02T23:30:04","modified_gmt":"2023-08-03T06:30:04","slug":"net-8-preview-6-%e4%b8%ad%e6%8e%a8%e5%87%ba-net-maui%ef%bc%9a-%e6%ac%a2%e8%bf%8e%e4%bd%bf%e7%94%a8-vs-code%e5%92%8cvs-for-mac","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/net-8-preview-6-%e4%b8%ad%e6%8e%a8%e5%87%ba-net-maui%ef%bc%9a-%e6%ac%a2%e8%bf%8e%e4%bd%bf%e7%94%a8-vs-code%e5%92%8cvs-for-mac\/","title":{"rendered":".NET 8 Preview 6 \u4e2d\u63a8\u51fa.NET MAUI\uff1a \u6b22\u8fce\u4f7f\u7528 VS Code\u548cVS for Mac"},"content":{"rendered":"<p>\u4f5c\u8005\uff1aDavid Ortinau\u00a0 \u00a0\u539f\u6587\uff1a<a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-dotnet-maui-in-dotnet-8-preview-6\/\">Announcing .NET MAUI in .NET 8 Preview 6: Hello VS Code &amp; VS for Mac &#8211; .NET Blog (microsoft.com)<\/a><\/p>\n<p>.NET 8 Preview 6 \u63a8\u51fa\u4e86.NET MAUI\uff0c\u540c\u65f6\u4fee\u590d\u4e86 23 \u4e2a\u5173\u952e\u95ee\u9898\uff0c\u5e76\u5f15\u5165\u4e86\u9002\u7528\u4e8e <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-dotnet-8-preview-6\/#support-for-targeting-ios-platforms-with-nativeaot\">iOS \u7684Native AOT<\/a>\u3002\u6b64\u5916\uff0c\u60a8\u73b0\u5728\u53ef\u4ee5\u5728 .NET 8 \u4e2d\u4f7f\u7528 .NET MAUI\uff0c\u53ea\u8981\u5b89\u88c5<a href=\"https:\/\/aka.ms\/maui-devkit-blog\">Visual Studio Code \u7684\u65b0 .NET MAUI \u6269\u5c55<\/a>\u6216\u8005 Visual Studio for Mac 17.6.1\u3002<\/p>\n<blockquote><p>\u65b0\u7684 .NET 7 Service Release\u4e5f\u6210\u529f\u53d1\u5e03\u3002\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605<a href=\"https:\/\/github.com\/dotnet\/maui\/releases\/tag\/7.0.92\">\u53d1\u884c\u8bf4\u660e<\/a>\u3002\u76ee\u524d\u6211\u4eec\u4e13\u6ce8\u4e8e .NET 8\u7684\u8d28\u91cf\uff0c\u8fd9\u610f\u5473\u7740\u6211\u4eec\u53ea\u4f1a\u4e3a .NET 7 \u53d1\u5e03\u6700\u5173\u952e\u7684\u4fee\u590d\u3002\u4e00\u65e6 .NET 8 \u6b63\u5f0f\u53d1\u5e03 \uff0c\u6211\u4eec\u5c06\u91cd\u65b0\u8bc4\u4f30\u5728\u670d\u52a1\u7248\u672c\u4e2d\u5305\u542b\u4fee\u590d\u7684\u9700\u6c42\u3002<\/p><\/blockquote>\n<h3><strong>.NET MAUI <\/strong><strong>\u4e2d\u4fee\u590d\u548c\u6539\u8fdb\u7684\u5185\u5bb9<\/strong><\/h3>\n<p>\u51e0\u4e2a\u4e3b\u8981\u7684\u684c\u9762\u95ee\u9898\u5df2\u7ecf\u89e3\u51b3\uff1a\u5b57\u4f53\uff08<a href=\"https:\/\/github.com\/dotnet\/maui\/issues\/9104\">#9104<\/a>\u3001<a href=\"https:\/\/github.com\/dotnet\/maui\/issues\/13239\">#13239<\/a>\uff09\u3001\u5bfc\u822a\uff08<a href=\"https:\/\/github.com\/dotnet\/maui\/issues\/7698\">#7698<\/a>\u3001<a href=\"https:\/\/github.com\/dotnet\/maui\/issues\/15488\">#15488<\/a>\u3001<a href=\"https:\/\/github.com\/dotnet\/maui\/issues\/9938\">#9938<\/a>\uff09\u3001\u9009\u9879\u5361\uff08<a href=\"https:\/\/github.com\/dotnet\/maui\/issues\/12386\">#12386<\/a>\u3001<a href=\"https:\/\/github.com\/dotnet\/maui\/issues\/13239\">#13239<\/a>\u3001<a href=\"https:\/\/github.com\/dotnet\/maui\/issues\/6929\">#6929<\/a>\uff09\u548c\u6587\u4ef6\u9009\u62e9\u5668\uff08<a href=\"https:\/\/github.com\/dotnet\/maui\/issues\/11088\">#11088<\/a>\uff09\u3002\u6211\u4eec\u4e5f\u4f1a\u7ee7\u7eed\u6539\u5584\u5185\u5b58\u7ba1\u7406\u5e76\u89e3\u51b3\u5730\u5740\u6cc4\u6f0f\u95ee\u9898\uff08<a href=\"https:\/\/github.com\/dotnet\/maui\/pull\/15062\">#15062<\/a>\u3001<a href=\"https:\/\/github.com\/dotnet\/maui\/pull\/15303\">#15303<\/a>\u3001<a href=\"https:\/\/github.com\/dotnet\/maui\/pull\/15831\">#15831<\/a>\uff09\u3002<\/p>\n<p>.NET 8 \u9884\u89c8\u7248 6 \u5f15\u5165\u4e86\u9002\u7528\u4e8e iOS \u7684Native AOT\uff08\u63d0\u524d\u7f16\u8bd1\uff09\u3002\u6211\u4eec\u5728\u4f7f\u7528\u8fd9\u4e2a\u53ef\u9009\u7684\u9884\u89c8\u529f\u80fd\u540e\u53ef\u4ee5\u53d1\u73b0\uff1a\u4e0eMono\u76f8\u6bd4\uff0c\u5e94\u7528\u5927\u5c0f\u51cf\u5c11\u4e8630-40%\u3002\u5982\u679c\u60a8\u5bf9\u5728 iOS \u5e73\u53f0\u83b7\u53d6\u66f4\u597d\u7684\u6027\u80fd\u548c\u8282\u7701\u7a7a\u95f4\u611f\u5174\u8da3\uff0c\u8bf7\u67e5\u770b <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-dotnet-8-preview-6\/#support-for-targeting-ios-platforms-with-nativeaot\">.NET 8 \u9884\u89c8\u7248 6 \u535a\u5ba2\u6587\u7ae0<\/a>\u4e2d\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<p>\u611f\u8c22\u5e2e\u52a9\u53d1\u5e03\u6b64\u7248\u672c\u7684 25 \u4f4d\u8d21\u732e\u8005\uff08\u5305\u62ecbot\uff09\uff0c\u7279\u522b\u662f .NET MAUI \u7684 5 \u4f4d\u5168\u65b0\u8d21\u732e\u8005\uff1a<a href=\"https:\/\/github.com\/expensivecow\">Michael Cao<\/a>\u3001<a href=\"https:\/\/github.com\/widavies\">Will Davies<\/a>\u3001<a href=\"https:\/\/github.com\/MartyIX\">@MartyIX<\/a>\u3001<a href=\"https:\/\/github.com\/lewing\">Larry Ewing<\/a>\u3001<a href=\"https:\/\/github.com\/filipnavara\">Filip Navara<\/a>\u548c<a href=\"https:\/\/github.com\/rdavisau\">Ryan Davis<\/a>\u3002<\/p>\n<p>\u6709\u5173\u4fee\u590d\u7684\u5b8c\u6574\u5217\u8868\uff0c\u8bf7\u67e5\u770b<a href=\"https:\/\/github.com\/dotnet\/maui\/releases\/tag\/8.0.0-preview.6.8686\">\u53d1\u884c\u8bf4\u660e<\/a>\u3002<\/p>\n<h3><strong>VS Code <\/strong><strong>\u7b80\u4ecb\uff08\u9884\u89c8<\/strong>\uff09<\/h3>\n<p>\u4eca\u5929\uff0c\u6211\u4eec\u8fd8\u53d1\u5e03\u4e86 Visual Studio Code \u7684 .NET MAUI \u6269\u5c55\uff0c\u4e3a Windows\u3001macOS \u548c Linux \u63d0\u4f9b\u4e00\u81f4\u7684\u8de8\u5e73\u53f0\u5f00\u53d1\u4f53\u9a8c\u3002\u6709\u5173\u6269\u5c55\u7684\u5b8c\u6574\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u67e5\u770b Maddy Montaquila \u7684<a href=\"https:\/\/aka.ms\/maui-devkit-blog\">\u535a\u5ba2\u6587\u7ae0<\/a>\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2023\/07\/vscode_pointofsale.png\" \/><\/p>\n<h3><strong>\u5982\u4f55\u66f4\u65b0<\/strong><\/h3>\n<p>\u5728Windows \u4e0a\uff0c Visual Studio 2022 \u73b0\u5728\u5305\u542b .NET 8 \u9884\u89c8\u548c .NET MAUI \u9884\u89c8\u7248\u5de5\u4f5c\u8d1f\u8f7d\u3002\u8bf7\u4e0b\u8f7d\u6700\u65b0\u7684\u9884\u89c8\u7248\u672c\uff0817.7 Preview 3\uff09\uff0c\u9009\u62e9.NET Multi-platform App UI\u5de5\u4f5c\u8d1f\u8f7d\uff0c\u7136\u540e\u9009\u4e2d\u53ef\u9009\u7ec4\u4ef6\u201c.NET MAUI\uff08.NET 8 Preview\uff09\u201d\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2023\/06\/vs17.7-p2-installer.png\" \/><\/p>\n<p>\u5982\u679c\u60a8\u60f3\u8981\u5728macOS\u4e0a\u4f7f\u7528Visual Studio for Mac\u8fdb\u884c\u5f00\u53d1\uff0c\u60a8\u53ef\u4ee5\u5728\u201cPreferences\u201d\u4e2d\u542f\u7528 .NET 8 \u9884\u89c8\u529f\u80fd\u5e76\u4ece\u5b89\u88c5\u7a0b\u5e8f\u5b89\u88c5 .NET 8 \u9884\u89c8\u7248 6\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2023\/07\/vsm_enable_net8.png\" alt=\"Enable .NET 8 in Visual Studio 2022 for Mac\" \/><\/p>\n<p>\u4e0b\u8f7d<a href=\"https:\/\/dotnet.microsoft.com\/download\/dotnet\/8.0\">.NET 8 \u9884\u89c8\u7248 6 \u5b89\u88c5\u7a0b\u5e8f<\/a>\uff0c\u7136\u540e\u4ece\u547d\u4ee4\u884c\u5b89\u88c5 .NET MAUI\uff1a<\/p>\n<pre class=\" prettyprinted\" tabindex=\"0\"><code class=\"language-bash prettyprinted\"><span class=\"pln\">dotnet workload install maui<\/span><\/code><\/pre>\n<p><strong>\u6b22\u8fce\u53cd\u9988<\/strong><\/p>\n<p>\u6211\u4eec\u611f\u8c22\u60a8\u5bf9 .NET MAUI \u7684\u53cd\u9988\u548c\u8d21\u732e\u3002\u60a8\u53ef\u4ee5\u5728GitHub \u5b58\u50a8\u5e93\u4e0a<a href=\"https:\/\/github.com\/dotnet\/maui\/issues\/new\/choose\">\u62a5\u544a\u95ee\u9898<\/a>\u3001<a href=\"https:\/\/github.com\/dotnet\/maui\/issues\/new?assignees=&amp;labels=proposal%2Fopen%2Ct%2Fenhancement&amp;projects=&amp;template=feature-request.yml\">\u5efa\u8bae\u529f\u80fd<\/a>\u6216<a href=\"https:\/\/github.com\/dotnet\/maui\/blob\/main\/.github\/CONTRIBUTING.md\">\u63d0\u4ea4\u8bf7\u6c42\u3002<\/a>\u60a8\u8fd8\u53ef\u4ee5\u52a0\u5165\u6211\u4eec\u7684 Discord \u670d\u52a1\u5668\u6216\u5728 Twitter \u4e0a\u5173\u6ce8\u6211\u4eec\uff0c\u4ee5\u968f\u65f6\u4e86\u89e3\u6700\u65b0\u65b0\u95fb\u548c\u66f4\u65b0\u3002<\/p>\n<p>\u611f\u8c22\u60a8\u7684\u652f\u6301\uff0c\u795d\u60a8\u7f16\u7801\u6109\u5feb\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005\uff1aDavid Ortinau\u00a0 \u00a0\u539f\u6587\uff1aAnnouncing .NET MAUI in .NET 8 Preview 6: Hello VS Code &amp; VS for Mac &#8211; .NET Blog (microsoft.com) .NET 8 Preview 6 \u63a8\u51fa\u4e86.NET MAUI\uff0c\u540c\u65f6\u4fee\u590d\u4e86 23 \u4e2a\u5173\u952e\u95ee\u9898\uff0c\u5e76\u5f15\u5165\u4e86\u9002\u7528\u4e8e iOS \u7684Native AOT\u3002\u6b64\u5916\uff0c\u60a8\u73b0\u5728\u53ef\u4ee5\u5728 .NET 8 \u4e2d\u4f7f\u7528 .NET MAUI\uff0c\u53ea\u8981\u5b89\u88c5Visual Studio Code \u7684\u65b0 .NET MAUI \u6269\u5c55\u6216\u8005 Visual Studio for Mac 17.6.1\u3002 \u65b0\u7684 .NET 7 Service Release\u4e5f\u6210\u529f\u53d1\u5e03\u3002\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u53d1\u884c\u8bf4\u660e\u3002\u76ee\u524d\u6211\u4eec\u4e13\u6ce8\u4e8e .NET 8\u7684\u8d28\u91cf\uff0c\u8fd9\u610f\u5473\u7740\u6211\u4eec\u53ea\u4f1a\u4e3a [&hellip;]<\/p>\n","protected":false},"author":97248,"featured_media":448,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[16,5],"class_list":["post-435","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet-ch","tag-net-8","tag-net-maui"],"acf":[],"blog_post_summary":"<p>\u4f5c\u8005\uff1aDavid Ortinau\u00a0 \u00a0\u539f\u6587\uff1aAnnouncing .NET MAUI in .NET 8 Preview 6: Hello VS Code &amp; VS for Mac &#8211; .NET Blog (microsoft.com) .NET 8 Preview 6 \u63a8\u51fa\u4e86.NET MAUI\uff0c\u540c\u65f6\u4fee\u590d\u4e86 23 \u4e2a\u5173\u952e\u95ee\u9898\uff0c\u5e76\u5f15\u5165\u4e86\u9002\u7528\u4e8e iOS \u7684Native AOT\u3002\u6b64\u5916\uff0c\u60a8\u73b0\u5728\u53ef\u4ee5\u5728 .NET 8 \u4e2d\u4f7f\u7528 .NET MAUI\uff0c\u53ea\u8981\u5b89\u88c5Visual Studio Code \u7684\u65b0 .NET MAUI \u6269\u5c55\u6216\u8005 Visual Studio for Mac 17.6.1\u3002 \u65b0\u7684 .NET 7 Service Release\u4e5f\u6210\u529f\u53d1\u5e03\u3002\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u53d1\u884c\u8bf4\u660e\u3002\u76ee\u524d\u6211\u4eec\u4e13\u6ce8\u4e8e .NET 8\u7684\u8d28\u91cf\uff0c\u8fd9\u610f\u5473\u7740\u6211\u4eec\u53ea\u4f1a\u4e3a [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/posts\/435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/users\/97248"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/comments?post=435"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/posts\/435\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/media\/448"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/media?parent=435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/categories?post=435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/tags?post=435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}