{"id":300,"date":"2023-03-03T01:14:55","date_gmt":"2023-03-03T09:14:55","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/?p=300"},"modified":"2023-03-03T01:14:55","modified_gmt":"2023-03-03T09:14:55","slug":"%e5%ae%98%e5%ae%a3-net-8-preview-1%e7%9a%84%e5%8f%91%e5%b8%83","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/%e5%ae%98%e5%ae%a3-net-8-preview-1%e7%9a%84%e5%8f%91%e5%b8%83\/","title":{"rendered":"\u5b98\u5ba3 .NET 8 Preview 1\u7684\u53d1\u5e03"},"content":{"rendered":"<p><span class=\"ui-provider ha b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak\" dir=\"ltr\" style=\"font-size: 10pt;\"><i><strong>\u672c\u6587\u7ffb\u8bd1\u4e8eJeremy Likness\u7684\u8fd9\u7bc7\u82f1\u6587\u6587\u7ae0\uff1a<a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-dotnet-8-preview-1\/\">Announcing .NET 8 Preview 1 &#8211; .NET Blog (microsoft.com).<\/a><\/strong><\/i><\/span><\/p>\n<p>\u6b22\u8fce\u4f7f\u7528 .NET 8! \u7b2c\u4e00\u4e2a\u9884\u89c8\u7248\u53ef\u4f9b\u60a8\u4e0b\u8f7d:\u202f<a href=\"https:\/\/dotnet.microsoft.com\/next\">claim your copy of the first .NET 8 preview<\/a>\u202f\u5e76\u7acb\u5373\u5f00\u59cb\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u3002\u5411\u4e0b\u6eda\u52a8\u4ee5\u67e5\u770b\u6b64\u9884\u89c8\u4e2d\u5305\u542b\u7684\u529f\u80fd\u5217\u8868\u3002.NET 8 \u662f\u4e00\u4e2a<a href=\"https:\/\/dotnet.microsoft.com\/platform\/support\/policy\/dotnet-core\">\u957f\u671f\u652f\u6301 (LTS) \u7248\u672c<\/a>\u3002\u8fd9\u7bc7\u535a\u6587\u6db5\u76d6\u4e86\u63a8\u52a8\u589e\u5f3a\u529f\u80fd\u4f18\u5148\u7ea7\u6392\u5e8f\u548c\u9009\u62e9\u5f00\u53d1\u7684\u4e3b\u8981\u4e3b\u9898\u548c\u76ee\u6807\u3002.NET 8\u9884\u89c8\u7248\u548c\u53d1\u5e03\u5019\u9009\u7248\u672c\u5c06\u6bcf\u6708\u4ea4\u4ed8\u4e00\u6b21\u3002 \u50cf\u5f80\u5e38\u4e00\u6837\uff0c\u6700\u7ec8\u7248\u672c\u5c06\u5728 11 \u6708\u7684\u67d0\u4e2a\u65f6\u5019\u5728 <a href=\"https:\/\/www.dotnetconf.net\/\">.NET Conf<\/a> \u4e0a\u53d1\u5e03\u3002<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-content\/uploads\/sites\/75\/2023\/03\/Picture1.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-301\" src=\"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-content\/uploads\/sites\/75\/2023\/03\/Picture1-300x169.png\" alt=\"Image Picture1\" width=\"300\" height=\"169\" srcset=\"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-content\/uploads\/sites\/75\/2023\/03\/Picture1-300x169.png 300w, https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-content\/uploads\/sites\/75\/2023\/03\/Picture1.png 624w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>.NET \u7248\u672c\u5305\u62ec\u4ea7\u54c1\u3001\u5e93\u3001\u8fd0\u884c\u65f6\u548c\u5de5\u5177\uff0c\u4ee3\u8868Microsoft \u5185\u5916\u591a\u4e2a\u56e2\u961f\u4e4b\u95f4\u7684\u534f\u4f5c\u3002 \u8fd9\u7bc7\u535a\u6587\u4e2d\u6db5\u76d6\u7684\u66f4\u5e7f\u6cdb\u7684\u4e3b\u9898\u5e76\u4e0d\u5305\u542b.NET 8\u7684\u6240\u6709\u5173\u952e\u573a\u666f\u548c\u6295\u8d44\u3002\u5b83\u4eec\u4ee3\u8868\u4e86\u5f88\u5927\u7684\u9886\u57df\uff0c\u4f46\u53ea\u662f\u8fdb\u5165.NET 8 \u7684\u6240\u6709\u91cd\u8981\u5de5\u4f5c\u7684\u4e00\u90e8\u5206\u3002\u6211\u4eec\u8ba1\u5212\u5bf9ASP.NET Core, Blazor, EF Core, WinForms, WPF\u548c\u5176\u4ed6\u5e73\u53f0\u8fdb\u884c\u5e7f\u6cdb\u7684\u6295\u8d44\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u9605\u8bfb\u4ea7\u54c1\u8def\u7ebf\u56fe\u4e86\u89e3\u6709\u5173\u8fd9\u4e9b\u9886\u57df\u7684\u66f4\u591a\u4fe1\u606f\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/translate.google.com\/website?sl=en&amp;tl=zh-CN&amp;hl=en&amp;u=https:\/\/aka.ms\/aspnet\/roadmap\">NET Core \u548c Blazor<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/ef\/core\/what-is-new\/ef-core-8.0\/plan\">EF 8 Roadmap<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/machinelearning\/blob\/main\/ROADMAP.md\">NET<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/maui\/wiki\/Roadmap\">.NET MAUI<\/a><\/li>\n<li><a href=\"https:\/\/aka.ms\/nuget\/roadmap\">NuGet<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/roslyn\/blob\/main\/docs\/Language%20Feature%20Status.md\">Roslyn<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/roadmap.md\">Runtime<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/winforms\/blob\/main\/docs\/roadmap.md\">WinForms<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/wpf\/blob\/main\/roadmap.md\">WPF<\/a><\/li>\n<\/ul>\n<p>\u8bf7\u52a1\u5fc5\u67e5\u770b<a href=\"https:\/\/themesof.net\/?q=milestone%3A8.0%22%20\\t%20%22_blank\">themesof.net<\/a>\u202f\u4e86\u89e3\u6709\u5173GitHub\u95ee\u9898\u8ddf\u8e2a .NET 8\u91cc\u7a0b\u7891\u7684\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u4e0b\u8f7d\u9002\u7528\u4e8e\u202fWindows, macOS, and Linux\u00a0 \u7684 <a href=\"https:\/\/dotnet.microsoft.com\/download\/dotnet\/8.0\">.NET\u00a0 8 preview 1<\/a>\u3002<\/p>\n<p>\u901a\u8fc7\u9605\u8bfb<a href=\"https:\/\/learn.microsoft.com\/dotnet\/core\/whats-new\/dotnet-8\">.NET 8 \u6587\u6863\u4e2d\u7684\u65b0\u589e\u529f\u80fd<\/a>\u6765\u4e86\u89e3\u6700\u65b0\u7684\u548c\u5373\u5c06\u5230\u6765\u7684\u65b0\u529f\u80fd\uff0c\u8be5\u6587\u6863\u5c06\u5728\u6574\u4e2a\u7248\u672c\u4e2d\u66f4\u65b0\u3002\u5f53\u6211\u4eec\u7684\u56e2\u961f\u53d1\u5e03\u65b0\u7684\u9884\u89c8\u7248\u65f6\uff0c\u6211\u4eec\u5c06\u5728\u5176\u4e2d\u5305\u542b\u5df2\u77e5\u529f\u80fd\u7684\u6458\u8981\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/dotnet.microsoft.com\/download\/dotnet\/8.0\">\u5b89\u88c5\u7a0b\u5e8f\u548c\u4e8c\u8fdb\u5236\u6587\u4ef6<\/a><\/li>\n<li><a href=\"https:\/\/translate.google.com\/website?sl=en&amp;tl=zh-CN&amp;hl=en&amp;u=https:\/\/github.com\/dotnet\/dotnet-docker\/blob\/main\/documentation\/supported-tags.md\">\u5bb9\u5668\u955c\u50cf<\/a><\/li>\n<li><a href=\"https:\/\/translate.google.com\/website?sl=en&amp;tl=zh-CN&amp;hl=en&amp;u=https:\/\/learn.microsoft.com\/dotnet\/core\/install\/linux\">Linux \u8f6f\u4ef6\u5305<\/a><\/li>\n<li><a href=\"https:\/\/translate.google.com\/website?sl=en&amp;tl=zh-CN&amp;hl=en&amp;u=https:\/\/github.com\/dotnet\/core\/tree\/main\/release-notes\/8.0\">\u53d1\u884c\u8bf4\u660e<\/a><\/li>\n<li><a href=\"https:\/\/translate.google.com\/website?sl=en&amp;tl=zh-CN&amp;hl=en&amp;u=https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/8.0\/known-issues.md\">\u5df2\u77e5\u7684\u95ee\u9898<\/a><\/li>\n<li><a href=\"https:\/\/translate.google.com\/website?sl=en&amp;tl=zh-CN&amp;hl=en&amp;u=https:\/\/github.com\/dotnet\/core\/issues\">GitHub \u95ee\u9898\u8ddf\u8e2a\u5668<\/a><\/li>\n<\/ul>\n<p>.NET 8 \u5df2\u901a\u8fc7 17.6 Preview 1\u6d4b\u8bd5\u3002\u5982\u679c\u4f60\u60f3\u5c1d\u8bd5 .NET 8 \u548c Visual Studio \u7cfb\u5217\u4ea7\u54c1\uff0c\u6211\u4eec\u5efa\u8bae\u4f60\u4f7f\u7528<a href=\"https:\/\/visualstudio.com\/preview\">preview channel builds<\/a>\u3002Visual Studio for Mac \u5bf9 .NET 8 \u9884\u89c8\u7248\u7684\u652f\u6301\u5c1a\u4e0d\u53ef\u7528\uff0c\u4f46\u5373\u5c06\u63a8\u51fa\u3002<\/p>\n<p><strong>\u6b22\u8fce\u4f7f\u7528<\/strong><strong> .NET 8<\/strong><\/p>\n<p>\u53bb\u5e74\u5e74\u5e95\uff0c\u6211\u4eec\u53d1\u5e03\u4e86 .NET 7\uff0c\u8fd9\u662f .NET \u56e2\u961f\u4e0e\u652f\u6301\u8be5\u7248\u672c\u7684\u4ee4\u4eba\u60ca\u53f9\u7684\u793e\u533a\u5408\u4f5c\u7684\u7ed3\u679c\uff0c\u8be5\u7248\u672c\u6709 10,000 \u591a\u540d\u793e\u533a\u6210\u5458\u63d0\u4f9b\u4e86\u8d85\u8fc7 28,000 \u4e2a\u793e\u533a\u8d21\u732e\u3002.NET 7 \u662f\u5f53\u4eca\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u7684\u9996\u9009\u6846\u67b6\u3002\u8be5\u7248\u672c\u5c06\u5e73\u53f0\u4e0e\u5bf9 ARM64 \u7684\u539f\u751f\u652f\u6301\u548c\u5bf9 Linux \u7684\u589e\u5f3a\u652f\u6301\u7edf\u4e00\u8d77\u6765\u3002\u5b83\u6709\u52a9\u4e8e\u901a\u8fc7 .NET MAUI \u7b49\u5de5\u5177\u4f7f\u60a8\u7684\u5e94\u7528\u7a0b\u5e8f\u73b0\u4ee3\u5316\uff0c\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u4ece\u540c\u4e00\u4ee3\u7801\u5e93\u6784\u5efa\u8de8\u5e73\u53f0\u7684\u79fb\u52a8\u548c\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u5305\u62ec\u5bf9 API \u6027\u80fd\u7684\u6539\u8fdb\uff0c\u5e76\u4f7f\u6784\u5efa\u548c\u90e8\u7f72\u5206\u5e03\u5f0f\u4e91\u539f\u751f\u5e94\u7528\u7a0b\u5e8f\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\u3002.\u202fNET 7 \u901a\u8fc7\u6539\u8fdb C# 11 \u51cf\u5c11\u4e86\u5fc5\u8981\u7684\u4ee3\u7801\u91cf\uff0c\u7b80\u5316\u4e86\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u7684\u4f53\u9a8c\uff0c\u5e76\u4f7f\u5f97\u4ec5\u7528\u51e0\u884c\u4ee3\u7801\u5c31\u53ef\u4ee5\u521b\u5efa\u548c\u914d\u7f6e API\u3002\u4ece\u5e2e\u52a9\u8c03\u8bd5\u4e91 API \u96c6\u6210\u5230\u76f4\u63a5\u4ece .NET SDK \u6784\u5efa\u5bb9\u5668\u7684\u5f00\u53d1\u96a7\u9053\uff0c\u5bf9\u5de5\u5177\u8fdb\u884c\u4e86\u5927\u91cf\u6539\u8fdb\uff0c\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n<p>\u6211\u4eec\u5c06\u5728\u6574\u4e2a\u7248\u672c\u4e2d\u66f4\u65b0<a href=\"https:\/\/learn.microsoft.com\/dotnet\/core\/whats-new\/dotnet-8\">.NET 8\u4e2d\u7684\u65b0\u589e\u529f\u80fd<\/a>\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u901a\u8fc7\u5411\u4e0b\u6eda\u52a8\u9605\u8bfb\u6211\u4eec\u5728\u9884\u89c8 1 \u4e2d\u53d1\u5e03\u7684\u5185\u5bb9\u3002\u9996\u5148\uff0c\u8ba9\u6211\u4eec\u5c55\u671b\u4e00\u4e0b .NET 8 \u7684\u613f\u666f\u3002<\/p>\n<p><strong>\u4e91\u539f\u751f\u5f00\u53d1\u8005\u7684\u6700\u4f73\u5e73\u53f0\u548c\u5de5\u5177<\/strong><\/p>\n<p>\u6211\u4eec\u76f8\u4fe1 .NET \u5f00\u53d1\u4eba\u5458\u5e94\u8be5\u80fd\u591f\u5c06\u4ed6\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u5feb\u901f\u8fc1\u79fb\u5230\u4e91\u4e2d\uff0c\u5728\u4e0d\u5f71\u54cd\u6027\u80fd\u7684\u60c5\u51b5\u4e0b\u6269\u5c55\u4ed6\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u6839\u636e\u53ef\u64cd\u4f5c\u7684\u6570\u636e\u548c\u5173\u4e8e\u60a8\u7684\u5e94\u7528\u7a0b\u5e8f\u5728\u751f\u4ea7\u4e2d\u7684\u53cd\u9988\u6765\u6539\u8fdb\u4ed6\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u6211\u4eec\u5c06\u6295\u8d44\u4e8e\u901a\u8fc7\u6301\u7eed\u96c6\u6210\u548c\u90e8\u7f72\u66f4\u8f7b\u677e\u5730\u7ba1\u7406\u672c\u5730\u5f00\u53d1\u548c\u6d4b\u8bd5\u7684\u5b8c\u6574\u7aef\u5230\u7aef\u4f53\u9a8c\u3002\u6211\u4eec\u7684\u76ee\u6807\u662f\u8ba9\u5fae\u670d\u52a1\u67b6\u6784\u7684\u5b9e\u65bd\u4ee5\u53ca\u5bb9\u5668\u7684\u6784\u5efa\u548c\u90e8\u7f72\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\u3002<\/p>\n<p><strong>\u4e91\u539f\u751f<\/strong>\u662f\u4e00\u4e2a\u672f\u8bed\uff0c\u7528\u4e8e\u63cf\u8ff0\u4e13\u95e8\u4e3a\u5728\u4e91\u8ba1\u7b97\u73af\u5883\u4e2d\u90e8\u7f72\u800c\u6784\u5efa\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u67b6\u6784\u548c\u8bbe\u8ba1\u3002\u4e91\u539f\u751f\u80cc\u540e\u7684\u4e3b\u8981\u601d\u60f3\u662f\u5229\u7528\u4e91\u8ba1\u7b97\u5e73\u53f0\u63d0\u4f9b\u7684\u4f18\u52bf\uff0c\u4f8b\u5982\u53ef\u6269\u5c55\u6027\u3001\u5f39\u6027\u548c\u81ea\u6211\u4fee\u590d\uff0c\u6765\u521b\u5efa\u9ad8\u5ea6\u53ef\u6269\u5c55\u548c\u6709\u5f39\u6027\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u8fd9\u63d0\u4f9b\u4e86\u7075\u6d3b\u6027\uff0c\u5e76\u907f\u514d\u4e86\u4e3a\u652f\u6301\u589e\u957f\u800c\u5bf9\u786c\u4ef6\u548c\u8f6f\u4ef6\u8fdb\u884c\u6f5c\u5728\u7684\u8fc7\u5ea6\u6295\u8d44\u3002\u8bb8\u591a\u5f00\u53d1\u4eba\u5458\u5c06\u4e91\u539f\u751f\u4e0e\u5fae\u670d\u52a1\u3001\u5bb9\u5668\u7f16\u6392 (Kubernetes) \u548c\u201c\u5373\u670d\u52a1\u201d\u4ea7\u54c1\u7b49\u6982\u5ff5\u8054\u7cfb\u5728\u4e00\u8d77\u3002<\/p>\n<p><strong>\u4f7f\u7528<\/strong><strong> MAUI <\/strong><strong>\u548c<\/strong><strong> Blazor <\/strong><strong>\u6df7\u5408\u8fdb\u884c\u8de8\u5e73\u53f0\u79fb\u52a8\u548c\u684c\u9762\u5f00\u53d1\u7684\u7edd\u4f73\u4f53\u9a8c<\/strong><\/p>\n<p>\u5728 .NET 7 \u671f\u95f4\uff0c\u6211\u4eec\u53d1\u5e03\u4e86<a href=\"https:\/\/translate.google.com\/website?sl=en&amp;tl=zh-CN&amp;hl=en&amp;u=https:\/\/learn.microsoft.com\/dotnet\/maui\/what-is-maui\">.NET \u591a\u5e73\u53f0\u5e94\u7528\u7a0b\u5e8f\u7528\u6237\u754c\u9762 (MAUI)<\/a>\u202fSDK \u548c Visual Studio \u5de5\u5177\u652f\u6301\u3002.NET MAUI \u63d0\u4f9b\u4e86\u4e00\u4e2a\u6846\u67b6\uff0c\u7528\u4e8e\u4f7f\u7528\u5355\u4e2a C# \u4ee3\u7801\u5e93\u4e3a\u8fd0\u884c Android\u3001iOS\u3001macOS \u548c Windows \u7684\u79fb\u52a8\u548c\u684c\u9762\u8bbe\u5907\u521b\u5efa\u672c\u673a\u5e94\u7528\u7a0b\u5e8f\u3002\u9664\u4e86\u652f\u6301 XAML UI \u4e4b\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528<a href=\"https:\/\/translate.google.com\/website?sl=en&amp;tl=zh-CN&amp;hl=en&amp;u=https:\/\/learn.microsoft.com\/aspnet\/core\/blazor\/hybrid\/\">Blazor<\/a>\u6784\u5efa\u5177\u6709<a href=\"https:\/\/learn.microsoft.com\/aspnet\/core\/blazor\/components\/\">Razor UI \u7ec4\u4ef6<\/a>\u7684\u6df7\u5408\u5e94\u7528\u7a0b\u5e8f\uff0c\u8fd9\u4e9b\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u8bbf\u95ee\u672c\u673a\u8bbe\u5907\u5e73\u53f0\u5e76\u5728\u79fb\u52a8\u3001\u684c\u9762\u548c Web \u4e4b\u95f4\u5171\u4eab\u3002.NET \u56e2\u961f\u8ba1\u5212\u4ee5\u8fd9\u4e9b\u7ecf\u9a8c\u4e3a\u57fa\u7840\uff0c\u4e13\u6ce8\u4e8e\u63d0\u9ad8 SDK \u548c\u5de5\u5177\u7684\u8d28\u91cf\u3001\u7a33\u5b9a\u6027\u3001\u6027\u80fd\u548c\u96c6\u6210\u5ea6\u3002<\/p>\n<p><strong>\u52bf\u5934\uff1a\u6839\u636e\u60a8\u7684\u610f\u89c1\u7ee7\u7eed\u5173\u6ce8\u8d28\u91cf\u548c\u6027\u80fd<\/strong><\/p>\n<p>.NET \u7684\u6bcf\u4e2a\u7248\u672c\u90fd\u5305\u62ec\u5bf9 API\u3001\u5e93\u548c\u6846\u67b6\u7684\u6027\u80fd\u3001\u8d28\u91cf\u3001\u7a33\u5b9a\u6027\u548c\u6613\u7528\u6027\u7684\u6539\u8fdb\uff0c\u5b83\u4eec\u6784\u6210\u4e86\u6d3b\u8dc3\u4e14\u4e0d\u65ad\u53d1\u5c55\u7684 .NET \u751f\u6001\u7cfb\u7edf\u3002\u5176\u4e2d\u8bb8\u591a\u6539\u8fdb\u662f\u7531\u5ba2\u6237\u548c\u793e\u533a\u6210\u5458\u786e\u5b9a\u5e76\u4f18\u5148\u8003\u8651\u7684\u3002.NET 8 \u5c06\u9075\u5faa\u76f8\u540c\u7684\u8d8b\u52bf\uff0c\u4f9d\u9760\u60a8\u9ad8\u5ea6\u91cd\u89c6\u7684\u53cd\u9988\u6765\u5e2e\u52a9\u6307\u5bfc\u6211\u4eec\u7684\u613f\u666f\u5e76\u63a8\u52a8\u6211\u4eec\u7684\u91cd\u70b9\u3002<\/p>\n<p><strong>\u4e86\u89e3\u6700\u65b0\u60c5\u51b5\u5e76\u4fdd\u6301\u6700\u65b0\u72b6\u6001<\/strong><\/p>\n<p>.NET\u5347\u7ea7\u5e2e\u52a9\u662f\u4e00\u4e2a\u6709\u4ef7\u503c\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u5c06\u4ed6\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u4ece\u65e7\u7248\u672c\u7684.NET Framework\u8fc1\u79fb\u5230\u65b0\u7248\u672c\u3002<a href=\"https:\/\/translate.google.com\/website?sl=en&amp;tl=zh-CN&amp;hl=en&amp;u=https:\/\/dotnet.microsoft.com\/platform\/upgrade-assistant\">\u8be5\u5de5\u5177\u7684\u6700\u65b0\u7248\u672c<\/a>\u5177\u6709\u6539\u8fdb\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u652f\u6301\u65b0\u573a\u666f\u5e76\u5904\u7406\u66f4\u591a\u6848\u4f8b\u3002\u6709\u4e86\u8fd9\u4e2a\u5de5\u5177\uff0c\u5f00\u53d1\u4eba\u5458\u73b0\u5728\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u4ed6\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u5347\u7ea7\u5230 .NET 6\u6216 .NET 7\u3002<\/p>\n<p>\u8be5\u5de5\u5177\u53ef\u4ee5\u81ea\u52a8\u68c0\u6d4b\u5e76\u5efa\u8bae\u9700\u8981\u5bf9\u4ee3\u7801\u8fdb\u884c\u7684\u66f4\u6539\uff0c\u4ee5\u786e\u4fdd\u4e0e\u8f83\u65b0\u7248\u672c\u7684\u6846\u67b6\u517c\u5bb9\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u53ef\u4ee5\u5904\u7406\u66f4\u590d\u6742\u7684\u573a\u666f\uff0c\u4f8b\u5982\u5347\u7ea7\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u7684\u5e94\u7528\u7a0b\u5e8f\u4ee5\u53ca\u4e0e\u66f4\u65b0\u7684\u5e73\u53f0\u529f\u80fd\u96c6\u6210\u3002\u8fd9\u4e9b\u6539\u8fdb\u4f7f .NET \u5347\u7ea7\u8f85\u52a9\u6210\u4e3a\u90a3\u4e9b\u5e0c\u671b\u4fdd\u6301\u5176\u5e94\u7528\u7a0b\u5e8f\u6700\u65b0\u5e76\u5229\u7528\u200b\u200b\u6700\u65b0\u7684 .NET \u529f\u80fd\u7684\u5f00\u53d1\u4eba\u5458\u7684\u4e0d\u53ef\u6216\u7f3a\u7684\u5de5\u5177\u3002\u8be5\u5de5\u5177\u6700\u8fd1<a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/upgrade-assistant-now-in-visual-studio\/\">\u4f5c\u4e3a Visual Studio \u6269\u5c55\u5f15\u5165<\/a>\u3002\u53ef\u5e2e\u52a9\u60a8\u4ece\u8212\u9002\u7684 Visual Studio\u5347\u7ea7\u3002<\/p>\n<p><strong>\u4ee5<\/strong><strong> .NET 8 \u4e3a\u76ee\u6807\u00a0<\/strong><\/p>\n<p>\u8981\u4ee5 .NET 8 \u4e3a\u76ee\u6807\uff0c\u60a8\u9996\u5148\u9700\u8981\u786e\u4fdd\u4ece Microsoft \u5b98\u65b9\u7f51\u7ad9\u5b89\u88c5\u4e86 .NET 8 SDK\u3002\u63a5\u4e0b\u6765\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65b0\u9879\u76ee\uff0c\u5e76\u901a\u8fc7\u5728\u9879\u76ee\u8bbe\u7f6e\u4e2d\u8bbe\u7f6e\u9002\u5f53\u7684\u76ee\u6807\u6846\u67b6\u6765\u6307\u5b9a\u60a8\u5e0c\u671b\u4ee5 .NET 8 \u4e3a\u76ee\u6807\u3002<\/p>\n<p>\u60a8\u8fd8\u53ef\u4ee5\u901a\u8fc7\u66f4\u6539\u9879\u76ee\u5c5e\u6027\u4e2d\u7684\u76ee\u6807\u6846\u67b6\uff0c\u5c06\u73b0\u6709\u9879\u76ee\u66f4\u65b0\u4e3a\u9762\u5411 .NET 8\u3002\u4e3a\u6b64\uff0c\u8bf7\u5728 Visual Studio \u6216\u60a8\u559c\u6b22\u7684 IDE \u4e2d\u53f3\u952e\u5355\u51fb\u9879\u76ee\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\uff0c\u7136\u540e\u9009\u62e9\u201c\u5e94\u7528\u7a0b\u5e8f\u201d\u9009\u9879\u5361\u3002\u4ece\u90a3\u91cc\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u8981\u4f7f\u7528\u7684\u76ee\u6807\u6846\u67b6\u7248\u672c\u3002\u8fd9\u5c06\u8bbe\u7f6e\u9002\u5f53\u7684\u76ee\u6807\u6846\u67b6\uff1a<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">&lt;TargetFramework&gt;net8.0&lt;\/TargetFramework&gt;<\/code><\/pre>\n<p>\u8bf7\u8bb0\u4f4f\uff0c\u4ee5 .NET 8 \u4e3a\u76ee\u6807\u53ef\u80fd\u9700\u8981\u66f4\u6539\u60a8\u7684\u4ee3\u7801\u6216\u4f9d\u8d56\u9879\uff0c\u56e0\u4e3a API \u6216\u5176\u4ed6\u529f\u80fd\u53ef\u80fd\u4e0e\u4ee5\u524d\u7248\u672c\u7684 .NET \u6709\u6240\u4e0d\u540c\u3002\u6700\u597d\u67e5\u770b .NET 8 \u7684\u6587\u6863\u548c\u53d1\u884c\u8bf4\u660e\uff0c\u4ee5\u786e\u4fdd\u60a8\u7684\u4ee3\u7801\u548c\u4f9d\u8d56\u9879\u4e0e\u65b0\u7248\u672c\u517c\u5bb9\u3002<\/p>\n<p><strong>.NET 8 <\/strong><strong>\u9884\u89c8\u7248<\/strong><strong> 1 <\/strong><strong>\u4e2d\u7684\u65b0\u589e\u529f\u80fd<\/strong><strong>\u00a0<\/strong><\/p>\n<p>\u6211\u4eec\u7684\u7b2c\u4e00\u4e2a\u9884\u89c8\u7248\u5305\u542b\u60a8\u4eca\u5929\u5c31\u53ef\u4ee5\u8bd5\u7528\u7684\u65b0\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u9884\u671f\u7ed3\u679c\u7684\u6458\u8981\u3002\u6709\u5173\u8be6\u7ec6\u7684\u53d1\u884c\u8bf4\u660e\u548c\u91cd\u5927\u66f4\u6539\uff0c\u8bf7\u9605\u8bfb<a href=\"https:\/\/translate.google.com\/website?sl=en&amp;tl=zh-CN&amp;hl=en&amp;u=https:\/\/learn.microsoft.com\/dotnet\/core\/whats-new\/dotnet-8\">.NET 8 \u4e2d\u7684\u65b0\u589e\u529f\u80fd<\/a>\u3002<\/p>\n<p><strong>Native AOT<\/strong><\/p>\n<p>\u7b2c\u4e00\u4e2a NativeAOT \u529f\u80fd\u5728 .NET 7 \u548c\u76ee\u6807\u63a7\u5236\u53f0\u5e94\u7528\u7a0b\u5e8f\u4e2d\u53d1\u5e03\u3002Ahead-of-Time (AOT)\u7f16\u8bd1\u662f .NET \u4e2d\u7684\u4e00\u9879\u91cd\u8981\u529f\u80fd\uff0c\u53ef\u4ee5\u5bf9 .NET \u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u4ea7\u751f\u91cd\u5927\u5f71\u54cd\u3002\u611f\u8c22<a href=\"https:\/\/translate.google.com\/website?sl=en&amp;tl=zh-CN&amp;hl=en&amp;u=https:\/\/github.com\/am11\">Adeel<\/a>\u548c<a href=\"https:\/\/translate.google.com\/website?sl=en&amp;tl=zh-CN&amp;hl=en&amp;u=https:\/\/github.com\/filipnavara%22%20\\t%20%22_blank\">Filip<\/a>\u5c06 NativeAOT \u529f\u80fd\u5f15\u5165 macOS \u8fdb\u884c\u9884\u89c8 1\u3002.NET \u56e2\u961f\u5c06\u4e13\u6ce8\u4e8e\u5b8c\u5584 .NET 8 \u7684\u4e00\u4e9b\u57fa\u7840\u77e5\u8bc6\uff0c\u4f8b\u5982\u5927\u5c0f\uff08\u8bf7\u53c2\u9605<a href=\"https:\/\/translate.google.com\/website?sl=en&amp;tl=zh-CN&amp;hl=en&amp;u=https:\/\/github.com\/dotnet\/runtime\/issues\/79003\">dotnet\/runtime#79003<\/a>\uff09\u3002\u4f7f\u7528NativeAOT\u53d1\u5e03\u5e94\u7528\u7a0b\u5e8f\u4f1a\u521b\u5efa\u4e00\u4e2a\u5b8c\u5168\u72ec\u7acb\u7684\u5e94\u7528\u7a0b\u5e8f\u7248\u672c\uff0c\u4e0d\u9700\u8981\u5355\u72ec\u7684\u8fd0\u884c\u65f6\uff0c\u56e0\u4e3a\u6240\u6709\u5185\u5bb9\u90fd\u5305\u542b\u5728\u5355\u4e2a\u6587\u4ef6\u4e2d\u3002\u4ece\u9884\u89c8\u7248 1 \u5f00\u59cb\uff0c\u8fd9\u4e2a\u6587\u4ef6\u53d8\u5c0f\u4e86\u3002\u4e8b\u5b9e\u4e0a\uff0cLinux \u7248\u672c\u73b0\u5728\u6700\u591a\u7f29\u5c0f\u4e86 50%\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u5305\u542b\u6574\u4e2a .NET \u8fd0\u884c\u65f6\u7684Native AOT\u7684\u201cHello, World\u201d\u5e94\u7528\u7a0b\u5e8f\u7684\u5927\u5c0f:<\/p>\n<table width=\"0\">\n<tbody>\n<tr>\n<td width=\"299\"><\/td>\n<td width=\"66\"><strong>.NET 7<\/strong><\/td>\n<td width=\"129\"><strong>.NET 8 Preview 1<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"299\">Linux x64 (with\u202f-p:StripSymbols=true)<\/td>\n<td width=\"66\">3.76 MB<\/td>\n<td width=\"129\">1.84 MB<\/td>\n<\/tr>\n<tr>\n<td width=\"299\">Windows x64<\/td>\n<td width=\"66\">2.85 MB<\/td>\n<td width=\"129\">1.77 MB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>NativeAOT \u5c06\u7ee7\u7eed\u6269\u5c55\u5e76\u7784\u51c6 .NET 8 \u4e2d\u7684\u5176\u4ed6\u5e94\u7528\u573a\u666f\uff0c\u56e0\u6b64\u8bf7\u7ee7\u7eed\u5173\u6ce8\u6b64\u535a\u5ba2\u4ee5\u83b7\u53d6\u672a\u6765\u66f4\u65b0\uff01<\/p>\n<p>\u5982\u679c\u60a8\u4e0d\u719f\u6089 AOT\uff0c\u8fd9\u91cc\u6709\u4e00\u4e9b AOT \u63d0\u4f9b\u7684\u597d\u5904\uff1a<\/p>\n<ul>\n<li><strong>\u51cf\u5c11\u5185\u5b58\u5360\u7528<\/strong>\uff1a\u4e0e JIT \u7f16\u8bd1\u4ee3\u7801\u76f8\u6bd4\uff0cAOT \u7f16\u8bd1\u4ee3\u7801\u9700\u8981\u66f4\u5c11\u7684\u5185\u5b58\uff0c\u56e0\u4e3a JIT \u7f16\u8bd1\u5668\u751f\u6210 AOT \u7f16\u8bd1\u5e94\u7528\u7a0b\u5e8f\u4e0d\u9700\u8981\u7684\u4e2d\u95f4\u4ee3\u7801\u3002\u8fd9\u5bf9\u4e8e\u5185\u5b58\u6709\u9650\u7684\u8bbe\u5907\u5c24\u5176\u6709\u76ca\uff0c\u4f8b\u5982\u5d4c\u5165\u5f0f\u7cfb\u7edf\u548c\u79fb\u52a8\u8bbe\u5907\u3002<\/li>\n<li><strong>\u6539\u8fdb\u7684\u542f\u52a8\u65f6\u95f4<\/strong>\uff1a\u4e0e JIT \u7f16\u8bd1\u4ee3\u7801\u76f8\u6bd4\uff0cAOT \u7f16\u8bd1\u4ee3\u7801\u542f\u52a8\u901f\u5ea6\u66f4\u5feb\uff0c\u56e0\u4e3a\u5b83\u6d88\u9664\u4e86 JIT \u7f16\u8bd1\u5668\u751f\u6210\u4e2d\u95f4\u4ee3\u7801\u5e76\u9488\u5bf9\u7279\u5b9a\u786c\u4ef6\u548c\u8f6f\u4ef6\u73af\u5883\u4f18\u5316\u4ee3\u7801\u7684\u9700\u8981\u3002\u8fd9\u5bf9\u4e8e\u5fc5\u987b\u5feb\u901f\u542f\u52a8\u7684\u5e94\u7528\u7a0b\u5e8f\u5c24\u5176\u6709\u5229\uff0c\u4f8b\u5982\u7cfb\u7edf\u670d\u52a1\u3001\u65e0\u670d\u52a1\u5668\u201c\u529f\u80fd\u201d\u548c\u540e\u53f0\u4efb\u52a1\u3002<\/li>\n<li><strong>\u5ef6\u957f\u7535\u6c60\u5bff\u547d<\/strong>\uff1a\u4e0e JIT \u7f16\u8bd1\u4ee3\u7801\u76f8\u6bd4\uff0cAOT \u7f16\u8bd1\u4ee3\u7801\u6d88\u8017\u7684\u7535\u91cf\u66f4\u5c11\uff0c\u56e0\u4e3a\u5b83\u6d88\u9664\u4e86 JIT \u7f16\u8bd1\u5668\u751f\u6210\u4e2d\u95f4\u4ee3\u7801\u5e76\u9488\u5bf9\u7279\u5b9a\u786c\u4ef6\u548c\u8f6f\u4ef6\u73af\u5883\u4f18\u5316\u4ee3\u7801\u7684\u9700\u8981\u3002\u8fd9\u5bf9\u4e8e\u4f9d\u8d56\u7535\u6c60\u7684\u8bbe\u5907\uff08\u4f8b\u5982\u79fb\u52a8\u8bbe\u5907\uff09\u5c24\u5176\u6709\u76ca\u3002<\/li>\n<\/ul>\n<h4><strong>.NET\u5bb9\u5668\u955c\u50cf<\/strong><\/h4>\n<p>.NET \u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u4f7f\u7528\u5bb9\u5668\u955c\u50cf\u4ee5\u8f7b\u91cf\u7ea7\u3001\u53ef\u79fb\u690d\u7684\u683c\u5f0f\u6253\u5305\u548c\u90e8\u7f72\u4ed6\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u8fd9\u79cd\u683c\u5f0f\u53ef\u4ee5\u5728\u4e0d\u540c\u73af\u5883\u4e2d\u8fd0\u884c\u5e76\u4e14\u53ef\u4ee5\u8f7b\u677e\u90e8\u7f72\u5230\u4e91\u7aef\u4e2d\u3002\u5173\u4e8e\u5982\u4f55\u5c06\u5bb9\u5668\u955c\u50cf\u7528\u4e8e .NET \u5e94\u7528\u7a0b\u5e8f\uff0c\u9884\u89c8\u7248 1 \u505a\u51fa\u4e86\u4ee5\u4e0b\u6539\u8fdb\uff1a<\/p>\n<p><strong>\u5c06\u9ed8\u8ba4<\/strong><strong> Linux <\/strong><strong>\u53d1\u884c\u7248\u66f4\u65b0\u4e3a<\/strong><strong> Debian 12<\/strong>\uff1a.NET \u5bb9\u5668\u955c\u50cf\u73b0\u5728\u4f7f\u7528<a href=\"https:\/\/www.debian.org\/releases\/bookworm\/\">Debian 12 (Bookworm)<\/a>\uff0c\u6211\u4eec<a href=\"https:\/\/lists.debian.org\/debian-devel-announce\/2023\/02\/msg00003.html\">\u9884\u8ba1\u5c06\u5728 2023 \u5e74\u5e74\u4e2d\u53d1\u5e03<\/a>\u3002<a href=\"https:\/\/github.com\/dotnet\/dotnet-docker\/blob\/main\/documentation\/supported-tags.md#multi-platform-tags\">Debian \u7528\u4e8e\u65b9\u4fbf\u7684\u6807\u7b7e\uff0c8.0<\/a>\u5982.8.0-bookworm-slim\u3002<\/p>\n<p><strong>\u6807\u7b7e\u66f4\u6539<\/strong>\uff1a.NET 8 \u9884\u89c8\u5bb9\u5668\u955c\u50cf\u5c06\u4f7f\u75288.0-preview\u4f5c\u4e3a\u6807\u7b7e\uff08\u4e0d\u662f8.0\uff09\u5e76\u5728Release Candidate \u7248\u672c\u8fc7\u6e21\u52308.0\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u76ee\u6807\u662f\u66f4\u6e05\u695a\u5730\u63cf\u8ff0\u9884\u89c8\u7248\u3002\u8fd9\u662f\u6839\u636e<a href=\"https:\/\/github.com\/dotnet\/dotnet-docker\/issues\/3531\">\u793e\u533a\u8bf7\u6c42<\/a>\u8fdb\u884c\u7684\u66f4\u6539\u3002<\/p>\n<p><strong>\u4e0e\u975e<\/strong><strong>\u6839<\/strong><strong>\uff08<\/strong><strong>non<\/strong><strong>&#8211;<\/strong><strong>root<\/strong><strong>\uff09\u7528\u6237\u4e00\u8d77\u8fd0\u884c\u5bb9\u5668\u955c\u50cf<\/strong>\uff1a\u5c3d\u7ba1\u5bb9\u5668\u57fa\u7840\u955c\u50cf\u51e0\u4e4e\u603b\u662f\u914d\u7f6e\u4e3a\u4e0e\u6839\u7528\u6237\u4e00\u8d77\u8fd0\u884c\u2014\u2014\u8fd9\u79cd\u8bbe\u7f6e\u5f80\u5f80\u4f1a\u4fdd\u7559\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u2014\u2014\u4f46\u5b83\u5e76\u4e0d\u603b\u662f\u6700\u597d\u7684\u65b9\u6cd5\u3002\u7136\u800c\uff0c\u5c06\u6bcf\u4e2a\u5e94\u7528\u7a0b\u5e8f\u914d\u7f6e\u4e3a\u62e5\u6709\u4e0d\u540c\u7684\u7528\u6237\u662f\u4e00\u4ef6\u5f88\u75db\u82e6\u7684\u4e8b\u60c5\uff0c\u800c\u4e14\u5bb9\u5668\u955c\u50cf\u4e0d\u4f1a\u9644\u5e26\u9002\u5408\u5bb9\u5668\u5de5\u4f5c\u8d1f\u8f7d\u7684\u975e\u6839\u7528\u6237\u3002<\/p>\n<p>.NET 8 \u63d0\u4f9b\u4e86\u4e00\u79cd\u66f4\u597d\u7684\u65b9\u6cd5\u3002\u4ece\u9884\u89c8\u7248 1 \u5f00\u59cb\uff0c\u6211\u4eec\u53d1\u5e03\u7684\u6240\u6709\u5bb9\u5668\u955c\u50cf\u90fd\u5c06\u652f\u6301\u975e\u6839\u914d\u7f6e\u3002\u4ee5\u4e0b\u662f\u7528\u4e8e\u4ee5\u975e\u6839\u8eab\u4efd\u4e3a Dockerfiles\u8fd0\u884c\u5bb9\u5668\u7684\u5355\u884c\u793a\u4f8b\uff1a<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">USER app<\/code><\/pre>\n<p>\u6b64\u5916\uff0c\u60a8\u73b0\u5728\u53ef\u4ee5\u4f7f\u7528-u app\u3002\u9ed8\u8ba4\u7aef\u53e3\u5df2\u4ece\u7aef\u53e380\u66f4\u6539\u4e3a8080\u3002\u8fd9\u662f\u542f\u7528\u975e\u6839\u65b9\u6848\u6240\u5fc5\u9700\u7684\u91cd\u5927\u66f4\u6539\uff0c\u56e0\u4e3a\u7aef\u53e380\u662f\u7279\u6743\u7aef\u53e3\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>\u8fd0\u884c\u65f6\u548c\u5e93<\/strong><\/h4>\n<h5><strong>\u5904\u7406\u968f\u673a\u6027\u7684\u5b9e\u7528\u65b9\u6cd5<\/strong><\/h5>\n<p>System.Random \u548c System.Security.Cryptography.RandomNumberGenerator \u90fd\u6709\u5b9e\u7528\u65b9\u6cd5GetItems\u4ee5\u7528\u4e8e\u4ece\u8f93\u5165\u96c6\u4e2d\u968f\u673a\u9009\u62e9\u9879\u76ee\uff08\u201c\u7528\u66ff\u6362\u201d\uff09\uff0c\u4ee5\u53ca\u7528\u4e8e\u968f\u673a\u5316\u8de8\u5ea6\u987a\u5e8f\u7684\u5b9e\u7528\u65b9\u6cd5Shuffle\u3002<\/p>\n<p>Shuffle \u6709\u52a9\u4e8e\u51cf\u5c11\u673a\u5668\u5b66\u4e60\u4e2d\u7684\u8bad\u7ec3\u504f\u5dee\uff08\u56e0\u6b64\u7b2c\u4e00\u4ef6\u4e8b\u5e76\u4e0d\u603b\u662f\u8bad\u7ec3\uff0c\u6700\u540e\u4e00\u4ef6\u4e8b\u603b\u662f\u6d4b\u8bd5\uff09\uff1a<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">YourType[] trainingData = LoadTrainingData();\r\nRandom.Shared.Shuffle(trainingData);\r\n\r\nIDataView sourceData = mlContext.Data.LoadFromEnumerable(trainingData);\r\n\r\nDataOperationsCatalog.TrainTestData split = mlContext.Data.TrainTestSplit(sourceData);\r\nmodel = chain.Fit(split.TrainSet);\r\n\r\nIDataView predictions = model.Transform(split.TestSet);\r\n...<\/code><\/pre>\n<p>\u6211\u4eec\u73a9\u4e2a\u6e38\u620f\u597d\u5417\uff1f\u73a9\u897f\u8499\u6e38\u620f\u600e\u4e48\u6837\uff1f<\/p>\n<pre class=\" prettyprinted\" tabindex=\"0\"><code class=\"language-C# prettyprinted\"><span class=\"kwd\">private<\/span> <span class=\"kwd\">static<\/span> <span class=\"typ\">ReadOnlySpan<\/span><span class=\"pun\">&lt;<\/span><span class=\"typ\">Button<\/span><span class=\"pun\">&gt;<\/span><span class=\"pln\"> s_allButtons <\/span><span class=\"pun\">=<\/span> <span class=\"kwd\">new<\/span><span class=\"pun\">[]<\/span>\r\n<span class=\"pun\">{<\/span>\r\n    <span class=\"typ\">Button<\/span><span class=\"pun\">.<\/span><span class=\"typ\">Red<\/span><span class=\"pun\">,<\/span>\r\n    <span class=\"typ\">Button<\/span><span class=\"pun\">.<\/span><span class=\"typ\">Green<\/span><span class=\"pun\">,<\/span>\r\n    <span class=\"typ\">Button<\/span><span class=\"pun\">.<\/span><span class=\"typ\">Blue<\/span><span class=\"pun\">,<\/span>\r\n    <span class=\"typ\">Button<\/span><span class=\"pun\">.<\/span><span class=\"typ\">Yellow<\/span><span class=\"pun\">,<\/span>\r\n<span class=\"pun\">};<\/span>\r\n<span class=\"pun\">...<\/span>\r\n<span class=\"typ\">Button<\/span><span class=\"pun\">[]<\/span><span class=\"pln\"> thisRound <\/span><span class=\"pun\">=<\/span> <span class=\"typ\">Random<\/span><span class=\"pun\">.<\/span><span class=\"typ\">Shared<\/span><span class=\"pun\">.<\/span><span class=\"typ\">GetItems<\/span><span class=\"pun\">(<\/span><span class=\"pln\">s_allButtons<\/span><span class=\"pun\">,<\/span> <span class=\"lit\">31<\/span><span class=\"pun\">);<\/span>\r\n<span class=\"com\">\/\/ rest of game goes here ...<\/span><\/code><\/pre>\n<h5><strong>System.Numerics \u548c System.Runtime.Intrinsics<\/strong><\/h5>\n<p>\u5728\u53ef\u80fd\u7684\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5c06 Vector256&lt;T&gt; \u91cd\u65b0\u5b9e\u73b0\u4e3a\u5185\u90e8 2x\u00a0Vector128&lt;T&gt; ops\uff1a<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/76221\">dotnet\/runtime#76221<\/a>\u3002\u8fd9\u80fd\u4f7f\u4e00\u4e9b\u51fd\u6570\u90e8\u5206\u52a0\u901f\uff0c\u4f8b\u5982\u5728 Arm64 \u4e0a\u00a0Vector128.IsHardwareAccelerated\u00a0==\u00a0true\u00a0\u4f46\u00a0Vector256.IsHardwareAccelerated\u00a0==\u00a0false\u3002<\/p>\n<p>\u6211\u4eec\u6dfb\u52a0\u4e86Vector512&lt;T&gt;\u521d\u59cb\u6258\u7ba1\u5b9e\u73b0\uff1a<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/76642\">dotnet\/runtime#76642<\/a>\u3002\u4e0e\u4e4b\u524d\u7684\u5de5\u4f5c\u9879\u975e\u5e38\u76f8\u4f3c\uff0c\u8fd9\u5728\u5185\u90e8\u5b9e\u73b0\u4e3a2x\u00a0Vector256&lt;T&gt; ops\uff08\u56e0\u6b64\u95f4\u63a5\u5b9e\u73b0\u4e3a 4x Vector128 ops\uff09\u3002\u8fd9\u80fd\u4f7f\u4e00\u4e9b\u51fd\u6570\u90e8\u5206\u52a0\u901f\uff0c\u5373\u4f7fVector512.IsHardwareAccelerated\u00a0==\u00a0false\u00a0\u2014 \u6ce8\u610f\uff1aVector512 \u8fd8\u6ca1\u6709\u76f4\u63a5\u52a0\u901f\uff0c\u5373\u4f7f\u5e95\u5c42\u786c\u4ef6\u652f\u6301\u5b83\u4e5f\u662f\u5982\u6b64\u3002\u6b64\u7c7b\u529f\u80fd\u5e94\u5728\u672a\u6765\u7684\u9884\u89c8\u7248\u4e2d\u542f\u7528\u3002<\/p>\n<p>\u91cd\u5199 Matrix3x2 \u548c Matrix4x4 \u4ee5\u66f4\u597d\u5730\u5229\u7528\u786c\u4ef6\u52a0\u901f\uff1a<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/80091\">dotnet\/runtime#80091<\/a>\u3002\u8fd9\u80fd\u4f7f\u67d0\u4e9b\u57fa\u51c6\u6d4b\u8bd5\u7684\u6027\u80fd\u63d0\u5347\u9ad8\u8fbe 48 \u500d\u30026-10 \u500d\u7684\u6539\u8fdb\u66f4\u4e3a\u5e38\u89c1\u3002\u2014 \u6ce8\u610f\uff1a \u9884\u89c8\u72482\u4f1a\u5bf9Quaternion\u548cPlane\u8fdb\u884c\u6539\u8fdb\u3002<\/p>\n<p>Hardware Intrinsics \u73b0\u5728\u7528ConstExpected\u5c5e\u6027\u8fdb\u884c\u6ce8\u91ca\uff1a<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/80192\">dotnet\/runtime#80192<\/a>\u3002\u8fd9\u80fd\u786e\u4fdd\u7528\u6237\u77e5\u9053\u5e95\u5c42\u786c\u4ef6\u4f55\u65f6\u9700\u8981\u5e38\u91cf\uff0c\u56e0\u6b64\u975e\u5e38\u91cf\u503c\u4f55\u65f6\u53ef\u80fd\u4f1a\u610f\u5916\u635f\u5bb3\u6027\u80fd\u3002<\/p>\n<p>\u5c06Lerp API\u6dfb\u52a0\u5230IFloatingPointIeee754&lt;TSelf&gt;\u00a0 \u4ece\u800c\u6dfb\u52a0\u5230float\u00a0(System.Single),\u00a0double\u00a0(System.Double)\u548c\u00a0System.Half\u548c:\u00a0<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/81186\">dotnet\/runtime#81186<\/a>\u3002\u8fd9\u80fd\u6709\u6548\u4e14\u6b63\u786e\u5730\u6267\u884c\u4e24\u4e2a\u503c\u4e4b\u95f4\u7684\u7ebf\u6027\u63d2\u503c\u3002<\/p>\n<h5><strong>JSON \u6539\u8fdb<\/strong><\/h5>\n<p>\u6211\u4eec\u4e0d\u65ad\u6539\u8fdbSystem.Text.Json\uff0c\u4e13\u6ce8\u4e8e\u589e\u5f3a\u6e90\u4ee3\u7801\u751f\u6210\u5668\u5728 NativeAOT \u5e94\u7528\u7a0b\u5e8f\u4e2d\u4e0e ASP.NET Core \u4e00\u8d77\u4f7f\u7528\u65f6\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002\u4e0b\u8868\u663e\u793a\u4e86\u9884\u89c8\u7248 1 \u9644\u5e26\u7684\u65b0\u529f\u80fd\uff1a<\/p>\n<ul>\n<li><strong>\u7f3a\u5c11\u6210\u5458\u5904\u7406<\/strong><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/79945\"><strong>dotnet\/runtime#79945<\/strong><\/a><\/li>\n<\/ul>\n<p>\u73b0\u5728\u53ef\u4ee5\u914d\u7f6e\u5bf9\u8c61\u53cd\u5e8f\u5217\u5316\u884c\u4e3a\uff0c\u5e95\u5c42 JSON \u8d1f\u8f7d\u5305\u542b\u65e0\u6cd5\u6620\u5c04\u5230\u53cd\u5e8f\u5217\u5316 POCO \u7c7b\u578b\u6210\u5458\u7684\u5c5e\u6027\u65f6\u90fd\u53ef\u4ee5\u9002\u7528\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u4e00\u4e2aJsonUnmappedMemberHandling\u503c\u6765\u63a7\u5236\uff0c\u4e5f\u53ef\u4ee5\u4f5c\u4e3a POCO \u7c7b\u578b\u672c\u8eab\u7684\u6ce8\u91ca\uff0c\u5168\u5c40\u4e0aJsonSerializerOptions\u6216\u901a\u8fc7\u81ea\u5b9a\u4e49JsonTypeInfo\u76f8\u5173\u7c7b\u578b\u7684\u5408\u540c\u4ee5\u7f16\u7a0b\u65b9\u5f0f\u8fdb\u884c\u63a7\u5236\uff1a<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">JsonSerializer.Deserialize&lt;MyPoco&gt;(\"\"\"{\"Id\" : 42, \"AnotherId\" : -1 }\"\"\"); \r\n\/\/ JsonException : The JSON property 'AnotherId' could not be mapped to any .NET member contained in type 'MyPoco'.\r\n\r\n[JsonUnmappedMemberHandling(JsonUnmappedMemberHandling.Disallow)]\r\npublic class MyPoco\r\n{\r\n   public int Id { get; set; }\r\n}<\/code><\/pre>\n<ul>\n<li><strong>\u6e90\u751f\u6210\u5668\u652f\u6301<\/strong>required<strong>\u548c<\/strong>init<strong>\u5c5e\u6027<\/strong><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/79828\"><strong>dotnet\/runtime#79828<\/strong><\/a><\/li>\n<\/ul>\n<p>\u6e90\u751f\u6210\u5668\u73b0\u5728\u652f\u6301\u5e8f\u5217\u5316\u5177\u6709 required \u548c init \u5c5e\u6027\u7684\u7c7b\u578b\uff0c\u6b63\u5982\u5f53\u524d\u5728\u57fa\u4e8e\u53cd\u5c04\u7684\u5e8f\u5217\u5316\u4e2d\u6240\u652f\u6301\u7684\u90a3\u6837\u3002<\/p>\n<ul>\n<li><strong>\u63a5\u53e3\u5c42\u6b21\u7ed3\u6784\u652f\u6301<\/strong><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/78788\"><strong>dotnet\/runtime#78788<\/strong><\/a><\/li>\n<\/ul>\n<p>System.Text.Json\u73b0\u5728\u652f\u6301\u4ece\u63a5\u53e3\u5c42\u6b21\u7ed3\u6784\u5e8f\u5217\u5316\u5c5e\u6027\uff1a<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">IDerived value = new Derived { Base = 0, Derived =1 };\r\nJsonSerializer.Serialize(value); \/\/ {\"Base\":0,\"Derived\":1}\r\n\r\npublic interface IBase\r\n{\r\n  public int Base { get; set; }\r\n}\r\n\r\npublic interface IDerived : IBase\r\n{\r\n  public int Derived { get; set; }\r\n}\r\n\r\npublic class Derived : IDerived\r\n{\r\n  public int Base { get; set; }\r\n  public int Derived { get; set; }\r\n}<\/code><\/pre>\n<ul>\n<li><strong>Snake Case <\/strong><strong>\u548c<\/strong><strong> Kebab Case\u00a0<\/strong><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/69613\"><strong>dotnet\/runtime#69613<\/strong><\/a><\/li>\n<\/ul>\n<p>\u8be5\u5e93\u73b0\u5728\u9644\u5e26\u4e86snake_case\u7684\u547d\u540d\u7b56\u7565\u548ckebab-case\u5c5e\u6027\u540d\u79f0\u8f6c\u6362\u3002\u5b83\u4eec\u7684\u7528\u6cd5\u4e0e\u73b0\u6709\u7684camelCase\u547d\u540d\u7b56\u7565\u7c7b\u4f3c\uff1a<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">var options = new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower };\r\nJsonSerializer.Serialize(new { PropertyName = \"value\" }, options); \/\/ { \"property_name\" : \"value\" }<\/code><\/pre>\n<p>\u73b0\u5728\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u540d\u7b56\u7565\uff1a<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">namespace System.Text.Json;\r\n\r\npublic class JsonNamingPolicy\r\n{\r\n  public static JsonNamingPolicy CamelCase { get; }\r\n  public static JsonNamingPolicy KebabCaseLower { get; }\r\n  public static JsonNamingPolicy KebabCaseUpper { get; }\r\n  public static JsonNamingPolicy SnakeCaseLower { get; }\r\n  public static JsonNamingPolicy SnakeCaseUpper { get; }\r\n}<\/code><\/pre>\n<p>\u611f\u8c22<a href=\"https:\/\/github.com\/YohDeadfall\">@YohDeadfall<\/a>\u8d21\u732e\u4e86\u5b9e\u65bd\u3002<\/p>\n<ul>\n<li><strong>\u6dfb\u52a0<\/strong><strong>MakeReadOnly()<\/strong><strong>\u548c<\/strong><strong>\u00a0<\/strong><strong>IsReadOnly<\/strong><strong>\u00a0API\u00a0<\/strong><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/74431\"><strong>dotnet\/runtime#74431<\/strong><\/a><\/li>\n<\/ul>\n<p>JsonSerializerOptions\u7c7b\u4e00\u76f4\u4f7f\u7528\u53ef\u51bb\u7ed3\u8bed\u4e49\uff0c\u4f46\u76f4\u5230\u73b0\u5728\u51bb\u7ed3\u53ea\u80fd\u901a\u8fc7\u5c06\u5b9e\u4f8b\u4f20\u9012\u7ed9\u5176\u4e2d\u4e00\u79cdJsonSerializer\u65b9\u6cd5\u6765\u9690\u5f0f\u5b8c\u6210\u3002\u6dfb\u52a0\u65b0 API \u540e\uff0c\u7528\u6237\u53ef\u4ee5\u660e\u786e\u63a7\u5236\u4f55\u65f6JsonSerializerOptions\u5e94\u51bb\u7ed3\u5176\u5b9e\u4f8b\uff1a<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">public class MySerializer\r\n{\r\n  private JsonSerializerOptions Options { get; }\r\n\r\n  public MySerializer()\r\n  {\r\n        Options = new JsonSerializerOptions(JsonSerializerDefaults.Web) { Converters = { new MyCustomConverter() } };\r\n        Options.MakeReadOnly(); \/\/ Make read-only before exposing the property.\r\n  }\r\n}<\/code><\/pre>\n<h5><strong>\u6838\u5fc3\u5e93\u4e2d\u4ee5\u6027\u80fd\u4e3a\u4e2d\u5fc3\u7684\u5168\u65b0\u7c7b\u578b<\/strong><\/h5>\n<p>\u591a\u4e2a\u65b0\u7c7b\u578b\u5df2\u6dfb\u52a0\u5230\u6838\u5fc3\u5e93\u4e2d\uff0c\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u5229\u7528\u65b0\u7c7b\u578b\u5728\u5e38\u89c1\u573a\u666f\u4e2d\u63d0\u9ad8\u4ee3\u7801\u7684\u6027\u80fd\u3002<\/p>\n<p>\u65b0\u7684\u547d\u540d\u7a7a\u95f4System.Collections.Frozen \u63d0\u4f9bFrozenDictionary&lt;TKey, TValue&gt; \u548cFrozenSet&lt;T&gt; \u96c6\u5408\u3002\u8fd9\u4e9b\u7c7b\u578b\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4e0d\u53ef\u53d8\u7684\u8868\u9762\u533a\u57df\uff0c\u4e00\u65e6\u521b\u5efa\uff0c\u952e\u6216\u503c\u5c31\u4e0d\u53ef\u4ee5\u8fdb\u884c\u4efb\u4f55\u66f4\u6539\u3002\u8fd9\u53cd\u8fc7\u6765\u53c8\u4f7f\u96c6\u5408\u80fd\u591f\u6839\u636e\u63d0\u4f9b\u7684\u6570\u636e\u66f4\u597d\u5730\u4f18\u5316\u540e\u7eed\u8bfb\u53d6\u64cd\u4f5c\uff08\u4f8b\u5982TryGetValue\uff09\uff0c\u4ece\u800c\u4f7f\u5176\u80fd\u591f\u5728\u6784\u9020\u671f\u6709\u66f4\u591a\u65f6\u95f4\u6765\u4f18\u5316\u6240\u6709\u672a\u6765\u7684\u8bbf\u95ee\u3002\u8fd9\u5bf9\u4e8e\u7b2c\u4e00\u6b21\u4f7f\u7528\u65f6\u586b\u5145\u3001\u4e14\u9700\u5728\u957f\u671f\u670d\u52a1\u671f\u95f4\u6301\u7eed\u5b58\u5728\u7684\u96c6\u5408\u7279\u522b\u6709\u7528\uff0c\u4f8b\u5982<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">private static readonly FrozenDictionary&lt;string, bool&gt; s_configurationData =\r\n    LoadConfigurationData().ToFrozenDictionary(optimizeForReads: true);\r\n...\r\nif (s_configurationData.TryGetValue(key, out bool setting) &amp;&amp; setting)\r\n{\r\n    Process();\r\n}<\/code><\/pre>\n<p>\u73b0\u6709\u7c7b\u578bImmutableArray&lt;T&gt;.Builder\u00a0\u8fd8\u83b7\u5f97\u4e86\u4e00\u79cd\u5c06\u5176\u5185\u5bb9\u9ad8\u6548\u8f6c\u6362\u4e3aImmutableArray&lt;T&gt;\u00a0\u7684\u65b0\u65b9\u6cd5\u3002.NET 8 \u5f15\u5165\u4e86DrainToImmutable()\uff0c\u5b83\u5c06\u5f53\u524d\u5185\u5bb9\u4f5c\u4e3a\u4e0d\u53ef\u53d8\u6570\u7ec4\u8fd4\u56de\uff0c\u5e76\u5c06\u6784\u5efa\u5668\u7684\u96c6\u5408\u91cd\u7f6e\u4e3a\u96f6\u957f\u5ea6\u6570\u7ec4\uff0c\u5b83\u4f1a\u9009\u62e9\u6700\u6709\u6548\u7684\u65b9\u6cd5\u6765\u6267\u884c\u6b64\u64cd\u4f5c\u3002\u57fa\u4e8e\u5143\u7d20\u7684\u8ba1\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u6b64\u65b9\u6cd5\u4ee3\u66ff\u6709\u6761\u4ef6\u5730\u8c03\u7528ToImmutable()\u6216MoveToImmutable()\u3002<\/p>\n<p>\u65b0\u7c7b\u578b\u7684\u53e6\u4e00\u4e2a\u4f8b\u5b50\u662fIndexOfAnyValues&lt;T&gt;\uff0c\u5b83\u80fd\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u9884\u5148\u6295\u5165\u4e00\u4e9b\u65f6\u95f4\u4ee5\u6362\u53d6\u4ee5\u540e\u66f4\u5feb\u7684\u6267\u884c\u901f\u5ea6\u3002\u9664\u4e86\u50cfIndexOfAnyInRange\u4e4b\u7c7b\u7684\u65b0\u65b9\u6cd5\u4e4b\u5916\uff0c\u8fd8\u6dfb\u52a0\u4e86\u63a5\u53d7IndexOfAnyValues&lt;T&gt;\u00a0\u5b9e\u4f8b\u7684\u65b0\u91cd\u8f7dIndexOfAny\u00a0\uff0c\u53ef\u4ee5\u521b\u5efa\u5b9e\u4f8b\u6765\u8868\u793a\u8981\u641c\u7d22\u7684\u4e00\u7ec4T\u00a0\u503c\u3002\u6b64\u5b9e\u4f8b\u7684\u521b\u5efa\u5904\u7406\u6d3e\u751f\u4efb\u4f55\u5fc5\u8981\u7684\u6570\u636e\u4ee5\u4f18\u5316\u540e\u7eed\u641c\u7d22\u3002\u4f8b\u5982\uff0c\u5982\u679c\u60a8\u7ecf\u5e38\u641c\u7d22\u6240\u6709 ASCII \u5b57\u6bcd\u548c\u6570\u5b57\u4ee5\u53ca\u4e00\u4e9b\u6807\u70b9\u7b26\u53f7\u5b57\u7b26\uff0c\u60a8\u4e4b\u524d\u53ef\u80fd\u4f1a\u8fd9\u6837\u5199\uff1a<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">private static readonly char[] s_chars = \"-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\".ToCharArray();\r\n...\r\nint i = str.IndexOfAny(s_chars);<\/code><\/pre>\n<p>\u7136\u800c\uff0c\u8fd9\u8981\u6c42\u6ca1\u6709\u4efb\u4f55\u7c7b\u578b\u7684\u5411\u91cf\u5316\u80fd\u591f\u63d0\u9ad8\u641c\u7d22\u6548\u7387\uff0c\u8981\u4e48\u9700\u8981\u5728\u6bcf\u6b21\u8c03\u7528 IndexOfAny \u65f6\u82b1\u65f6\u95f4\u8ba1\u7b97\u5fc5\u8981\u7684\u72b6\u6001\u4ee5\u52a0\u901f\u64cd\u4f5c\u3002\u73b0\u5728\uff0c\u60a8\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">private static readonly IndexOfAnyValues&lt;char&gt; s_chars = IndexOfAnyValues.Create(\"-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\");\r\n...\r\nint i = str.AsSpan().IndexOfAny(s_chars);<\/code><\/pre>\n<p>\u9884\u5148\u8ba1\u7b97\u6240\u6709\u8be5\u72b6\u6001\u4e00\u6b21\uff0c\u4ee5\u4fbf\u5728\u6bcf\u6b21\u540e\u7eed\u8c03\u7528\u65f6\u90fd\u53ef\u4ee5\u91cd\u7528IndexOfAny\u3002<\/p>\n<p>\u65b0\u7c7b\u578bCompositeFormat\u4f1a\u81ea\u5df1\u53cd\u590d\u8fd9\u79cd\u6a21\u5f0f\u3002.NET \u957f\u671f\u4ee5\u6765\u4e00\u76f4\u652f\u6301\u901a\u8fc7 API \u8fdb\u884c\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\uff0c\u4f8b\u5982string.Format\u00a0\u548cStringBuilder.AppendFormat\uff0c\u4f8b\u5982<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">static string GetMessage(int min, int max) =&gt;\r\n    string.Format(CultureInfo.InvariantCulture, \"Range from {0} to {1}\", min, max);<\/code><\/pre>\n<p>C# 6 \u6dfb\u52a0\u4e86\u5bf9\u5b57\u7b26\u4e32\u63d2\u503c\u7684\u652f\u6301\uff0c\u7136\u540e C# 10 \u7ed3\u5408 .NET 6 \u663e\u8457<a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/string-interpolation-in-c-10-and-net-6\/\">\u63d0\u9ad8\u4e86\u8fd9\u4e9b\u64cd\u4f5c\u7684\u6548\u7387<\/a>\uff0c\u4f7f\u5f97\u76f8\u540c\u7684\u64cd\u4f5c\u53ef\u4ee5\u5199\u6210\uff1a<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">static string GetMessage(int min, int max) =&gt;\r\n    string.Create(CultureInfo.InvariantCulture, $\"Range from {min} to {max}\");<\/code><\/pre>\n<p>\u4f46\u662f\u5b83\u662f\u5728\u7f16\u8bd1\u65f6\u800c\u4e0d\u662f\u5728\u6bcf\u6b21\u8c03\u7528string.Format\u65f6\u6267\u884c\u53ef\u4ee5\u9884\u5148\u8ba1\u7b97\u7684\u5de5\u4f5c\u3002\u00a0\u800c\u8fd9\u9700\u8981\u5728\u7f16\u8bd1\u65f6\u5c31\u80fd\u83b7\u53d6\u5230\u683c\u5f0f\u5b57\u7b26\u4e32\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u5728\u7f16\u8bd1\u65f6\u5bf9\u5176\u8fdb\u884c\u89e3\u6790\u2026\u2026\u5982\u679c\u5b83\u76f4\u5230\u8fd0\u884c\u65f6\u624d\u83b7\u53d6\u5230\u600e\u4e48\u529e\uff0c\u4f8b\u5982\uff0c\u5982\u679c\u5b83\u662f\u4ece\u8d44\u6e90\u6587\u4ef6\u6216\u5176\u4ed6\u52a8\u6001\u65b9\u5f0f\u52a0\u8f7d\u7684\uff1f\u4e3a\u6b64\uff0c.NET 8 \u6dfb\u52a0\u4e86CompositeFormat\u7c7b\u578b\u3002\u4e0eIndexOfAnyValues&lt;T&gt;\u4e00\u6837\uff0c\u5b83\u53ef\u4ee5\u6267\u884c\u6bcf\u6b21\u4f7f\u7528\u65f6\u9700\u8981\u6267\u884c\u7684\u64cd\u4f5c\uff0c\u7136\u540e\u5c06\u5176\u53d6\u51fa\u6267\u884c\u4e00\u6b21\u3002<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">private static readonly CompositeFormat s_rangeMessage = CompositeFormat.Parse(LoadRangeMessageResource());\r\n...\r\nstatic string GetMessage(int min, int max) =&gt;\r\n    string.Format(CultureInfo.InvariantCulture, s_rangeMessage, min, max);<\/code><\/pre>\n<p>\u8fd9\u4e9b\u65b0\u7684\u91cd\u8f7d\u8fd8\u652f\u6301\u6cdb\u578b\u53c2\u6570\uff0c\u4ee5\u907f\u514d\u88c5\u7bb1\u5f00\u9500\uff08boxing overheads\uff09\u5c06\u6240\u6709\u5185\u5bb9\u90fd\u8bc6\u522b\u4e3aobject\u3002<\/p>\n<p>.NET 8 \u9884\u89c8\u7248 1 \u8fd8\u589e\u52a0\u4e86\u5bf9\u65b0\u7684\u4ee5\u6027\u80fd\u4e3a\u4e2d\u5fc3\u7684\u54c8\u5e0c\u7b97\u6cd5\u7684\u652f\u6301\uff0c\u5305\u62ec\u65b0\u7684 XxHash3 \u548c XxHash128 \u7c7b\u578b\uff0c\u5b83\u4eec\u63d0\u4f9b\u4e86\u5feb\u901f XXH3 \u548c XXH128 \u54c8\u5e0c\u7b97\u6cd5\u7684\u5b9e\u73b0\u3002<\/p>\n<h4><strong>.NET SDK<\/strong><\/h4>\n<h5><strong>dotnet publish\u4e0edotnet pack\u9ed8\u8ba4\u751f\u4ea7Release \u8d44\u4ea7<\/strong><\/h5>\n<p>Publish\uff08\u53d1\u5e03\uff09\u548cPack\uff08\u6253\u5305\uff09\u52a8\u8bcd\u7684\u76ee\u7684\u662f\u4ea7\u751f\u751f\u4ea7\u8d44\u4ea7\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u4eec\u5e94\u8be5\u751f\u4ea7Release\u8d44\u4ea7\u3002\u5728 .NET 8 \u4e2d\uff0c\u4ed6\u4eec\u5c06\u9ed8\u8ba4\u6267\u884c\u6b64\u64cd\u4f5c\u3002\u4eba\u4eec<a href=\"https:\/\/twitter.com\/SteveDesmond_ca\/status\/1190619082346905600\">\u5f88\u4e45\u4e4b\u524d\u5c31\u60f3\u8981\u8fd9\u4e2a\u529f\u80fd\u4e86<\/a>\u3002\u62b1\u6b49\u62d6\u4e86\u8fd9\u4e48\u4e45\uff01<\/p>\n<p>\u6b64\u529f\u80fd\u7531<a href=\"https:\/\/github.com\/dotnet\/sdk\/issues\/23551\">PublishRelease\u548cPackRelease<\/a>\u5e03\u5c14\u5c5e\u6027\u63a7\u5236\u3002\u9ed8\u8ba4\u4e3atrue.<\/p>\n<p>\u7528dotnet publish\u6f14\u793a\u8be5\u529f\u80fd\u6700\u7b80\u5355\uff1a<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">\/app# dotnet new console\r\n\/app# dotnet build\r\n  app -&gt; \/app\/bin\/Debug\/net8.0\/app.dll\r\n\/app# dotnet publish\r\n  app -&gt; \/app\/bin\/Release\/net8.0\/app.dll\r\n  app -&gt; \/app\/bin\/Release\/net8.0\/publish\/\r\n\/app# dotnet publish -p:PublishRelease=false\r\n  app -&gt; \/app\/bin\/Debug\/net8.0\/app.dll\r\n  app -&gt; \/app\/bin\/Debug\/net8.0\/publish\/<\/code><\/pre>\n<p>\u8bf7\u6ce8\u610f\uff0cPublishRelease\u5e76\u4e14PackRelease\u4e5f\u5b58\u5728\u4e8e\u4ece 7.0.200 SDK \u5f00\u59cb\u7684 .NET 7 \u4e2d\u3002\u5b83\u4eec\u5728 .NET 7 \u4e2d\u662f\u53ef\u9009\u7684\uff0c\u5e76\u4e14\u5fc5\u987b\u8bbe\u7f6etrue\u624d\u80fd\u6267\u884c\u76f8\u540c\u7684\u884c\u4e3a\u3002<\/p>\n<p>\u8bf7\u53c2\u9605\u91cd\u5927\u66f4\u6539\u76f8\u5173\u6587\u6863\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/learn.microsoft.com\/dotnet\/core\/compatibility\/sdk\/8.0\/dotnet-publish-config\">dotnet publish<\/a><\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/dotnet\/core\/compatibility\/sdk\/8.0\/dotnet-pack-config\">dotnet pack<\/a><\/li>\n<\/ul>\n<h4><strong>Linux \u652f\u6301<\/strong><\/h4>\n<h5><strong>\u4ece dotnet\/dotnet \u6784\u5efa\u60a8\u81ea\u5df1\u7684 .NET<\/strong><\/h5>\n<p>.NET \u73b0\u5728\u53ef\u4ee5\u76f4\u63a5\u4ece<a href=\"https:\/\/github.com\/dotnet\/dotnet-docker\/issues\/3531\">dotnet\/dotnet<\/a>\u5b58\u50a8\u5e93\u5728 Linux \u4e0a\u6784\u5efa\u3002\u5b83\u4f7f\u7528<a href=\"https:\/\/github.com\/dotnet\/source-build\">dotnet\/source-build<\/a>\u6784\u5efa .NET \u8fd0\u884c\u65f6\u3001\u5de5\u5177\u548c SDK\u3002\u4f8b\u5982\uff0c\u8fd9\u4e0e<a href=\"http:\/\/redhatloves.net\/\">Red Hat<\/a>\u548c<a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/dotnet-6-is-now-in-ubuntu-2204\/\">Canonical<\/a>\u7528\u4e8e\u6784\u5efa .NET \u7684\u6784\u5efa\u76f8\u540c\u3002\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\uff0c\u6211\u4eec\u5c06\u6269\u5c55\u5176\u529f\u80fd\u4ee5\u652f\u6301 macOS \u548c Windows\u3002<\/p>\n<p>\u8bf7\u53c2\u9605<a href=\"https:\/\/github.com\/dotnet\/dotnet#building\">\u6784\u5efa\u8bf4\u660e<\/a>\u4ee5\u5728\u60a8\u81ea\u5df1\u7684\u8ba1\u7b97\u673a\u4e0a\u6784\u5efa VMR\u3002\u5bf9\u4e8e\u8bb8\u591a\u4eba\u6765\u8bf4\uff0c<a href=\"https:\/\/github.com\/dotnet\/dotnet#building-using-docker\">\u5728\u5bb9\u5668\u4e2d\u6784\u5efa<\/a>\u662f\u6700\u7b80\u5355\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u6211\u4eec\u7684dotnet-buildtools\/prereqs\u5bb9\u5668\u955c\u50cf\u5305\u542b\u6240\u6709\u5fc5\u9700\u7684\u4f9d\u8d56\u9879\u3002<\/p>\n<p>\u6211\u4eec\u79f0\u8fd9\u4e2a\u65b0\u5b58\u50a8\u5e93\u4e3a<a href=\"https:\/\/github.com\/dotnet\/arcade\/issues\/9359\">Virtual Mono Repository (VMR)<\/a>\u3002\u5b83\u5177\u6709\u771f\u6b63\u7684<a href=\"https:\/\/en.wikipedia.org\/wiki\/Monorepo\">monorepo<\/a>\u7684\u4f18\u52bf\uff0c\u8fd9\u591a\u4e8f\u4e86\u5f00\u53d1\u8005\u4eec\u6bcf\u5929\u5728\u4f17\u591a\u73b0\u6709\u5b58\u50a8\u5e93\u4e2d\uff08\u66f4\u6709\u6548\u5730\uff09\u6240\u505a\u7684<a href=\"https:\/\/github.com\/dotnet\/dotnet\/commits\/main\">\u5b9a\u671f\u66f4\u65b0<\/a>\u3002\u6211\u4eec\u76f8\u4fe1\uff0cVMR \u548c\u66f4\u5c0f\u7684\u201c\u5de5\u4f5c\u5b58\u50a8\u5e93\u201d\u4e4b\u95f4\u7684\u5206\u79bb\u662f .NET \u9879\u76ee\u7684\u672a\u6765\u3002\u6211\u4eec\u5e0c\u671b\u5728 VMR \u4e2d\u66f4\u5bb9\u6613\u6784\u5efa\u6a2a\u5207\u529f\u80fd\uff0c\u4f46\u662f\uff0c\u6211\u4eec\u76ee\u524d\u8fd8\u6ca1\u6709\u5b9e\u73b0\u3002<\/p>\n<p>\u4ece\u6e90\u4ee3\u7801\u6784\u5efa.NET\u5e76\u5c06\u5176\u6784\u5efa\u6210\u4e00\u4e2a\u5b8c\u6574\u4ea7\u54c1\u662f\u53ef\u884c\u7684\uff0c\u6211\u4eec\u8ba4\u4e3a\u8fd9\u4e2a\u65b0\u65b9\u6cd5\u5c31\u662f\u6211\u4eec\u5411\u5176\u8fc8\u51fa\u7684\u91cd\u8981\u4e00\u6b65\u3002<\/p>\n<p>\u5728 .NET 8 \u4e4b\u524d\uff0c\u4ece\u6e90\u6784\u5efa\u662f\u53ef\u884c\u7684\uff0c\u4f46\u9700\u8981\u4ece\u4e0e\u53d1\u5e03\u7248\u672c\u76f8\u5bf9\u5e94\u7684<a href=\"https:\/\/github.com\/dotnet\/installer\">dotnet\/installer<\/a> commit\u63d0\u4ea4\u521b\u5efa\u201csource tarball\u201d \u3002\u60a8\u4e0d\u518d\u9700\u8981\u8fdb\u884c\u8fd9\u4e00\u64cd\u4f5c\u3002\u5b58\u50a8\u5e93\u5c06\u6709\u4e0e\u6bcf\u4e2a\u53d1\u5e03\u7248\u672c\u5bf9\u5e94\u7684\u6807\u7b7e\uff0c\u4ee5\u53ca\u6301\u7eed\u8ddf\u8e2a\u4ea7\u54c1\u72b6\u6001\u7684main\u548crelease\/8.0-previewN\u5206\u652f\u3002<\/p>\n<h5><strong>.NET 8 + Ubuntu Chiseled<\/strong><strong>\u5bb9\u5668\u955c\u50cf<\/strong><\/h5>\n<p>\u6211\u4eec\u6b63\u5728\u53d1\u5e03\u5b89\u88c5\u4e86 .NET 8 \u7684<a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/dotnet-6-is-now-in-ubuntu-2204\/%22%20\/l%20%22net-in-chiseled-ubuntu-containers\">Ubuntu Chiseled<\/a>\u202f\u955c\u50cf. \u76f8\u6bd4\u5e38\u89c4\u5bb9\u5668\uff0c\u8fd9\u79cd\u7c7b\u578b\u7684\u955c\u50cf\u9002\u7528\u4e8e\u5e0c\u671b\u4f7f\u7528\u6709\u8bbe\u5907\u5f0f\u8ba1\u7b97\u4f18\u52bf\u7684\u5f00\u53d1\u4eba\u5458\u3002\u6211\u4eec\u9884\u8ba1\uff0c\u5f53.NET 8\u4e0a\u7ebf\u65f6\uff0cCanonical\u548cMicrosoft\u90fd\u5c06\u652f\u6301Ubuntu chiseled \u955c\u50cf\u3002<\/p>\n<p>\u6211\u4eec\u8ba1\u5212\u4ece .NET 8 \u5f00\u59cb\uff0c\u53d1\u5e03\u4ee5Ubuntu Chiseled\u5f62\u5f0f\u7684<a href=\"https:\/\/mcr.microsoft.com\/product\/dotnet\/monitor\/about%22%20\/t%20%22_blank\">dotnet\/monitor<\/a>\u202f\u955c\u50cf\u3002\u503c\u5f97\u4e00\u63d0\u7684\u662f\uff0cmonitor\u955c\u50cf\u662f\u6211\u4eec\u53d1\u5e03\u7684\u751f\u4ea7\u5e94\u7528\u955c\u50cf\u3002<\/p>\n<p>Chiseled images\u6709\u591a\u79cd\u4f18\u52bf:<\/p>\n<ul>\n<li>\u8d85\u5c0f\u56fe\u50cf\uff08\u51cf\u5c0f\u5c3a\u5bf8\u548c\u653b\u51fb\u9762\uff09<\/li>\n<li>\u6ca1\u6709\u5305\u7ba1\u7406\u5668\uff08\u907f\u514d\u6574\u7c7b\u653b\u51fb\uff09<\/li>\n<li>\u6ca1\u6709shell\u5916\u58f3\uff08\u907f\u514d\u6574\u7c7b\u653b\u51fb\uff09<\/li>\n<li>\u6ca1\u6709root\uff08\u907f\u514d\u6574\u7c7b\u653b\u51fb\uff09<\/li>\n<\/ul>\n<p>\u60a8\u53ef\u4ee5\u7531\u6b64<a href=\"https:\/\/github.com\/dotnet\/dotnet-docker\/blob\/main\/samples\/aspnetapp\/Dockerfile.chiseled\">aspnetapp sample<\/a>\u67e5\u770b\u751f\u4ea7\u4e2d\u7684\u7684Chiseled\u5bb9\u5668\u955c\u50cf\u3002\u4f7f\u7528\u65f6\uff0c\u60a8\u53ea\u9700\u8981\u66f4\u6539\u4e00\u884c\u4ee3\u7801\u3002<\/p>\n<p>.NET 6 \u548c .NET 7 \u7248\u672c\u7684Chiseled\u955c\u50cf\u73b0\u5728\u5df2\u88ab\u53d1\u5e03\u5230<a href=\"https:\/\/mcr.microsoft.com\/product\/dotnet\/nightly\/aspnet\/tags%22%20\/t%20%22_blank\">nightly<\/a>\u202f\u5b58\u50a8\u5e93\u4e2d\u3002<\/p>\n<h5><strong>Linux <\/strong><strong>\u652f\u6301\u548c\u57fa\u7ebf\u76ee\u6807<\/strong><\/h5>\n<p>\u6211\u4eec\u6b63\u5728\u66f4\u65b0\u652f\u6301.NET 8\u7684Linux\u7cfb\u7edf\u7684\u6700\u4f4e\u57fa\u7ebf\u3002\u6709\u4e09\u4e2a\u53d8\u5316\u9700\u8981\u6ce8\u610f\u3002<\/p>\n<ul>\n<li>.NET \u4ea7\u54c1\u5c06\u9488\u5bf9 Ubuntu 16.04 \u7248\u672c\u8fdb\u884c\u6784\u5efa\uff0c\u9002\u7528\u4e8e\u6240\u6709\u4f53\u7cfb\u7ed3\u6784\u3002\u8fd9\u5bf9\u4e8e\u5b9a\u4e49.NET 8 \u6240\u9700\u6700\u4f4e\u7684glibc\u202f\u7248\u672c\u975e\u5e38\u91cd\u8981\u3002\u4f8b\u5982\uff0c\u7531\u4e8e\u6b64\u9879\u66f4\u6539\uff0c.NET 8\u5c06\u751a\u81f3\u65e0\u6cd5\u5728 Ubuntu 14.04 \u4e0a\u542f\u52a8\u3002<\/li>\n<li>\u5bf9\u4e8eRed Hat Enterprise Linux\uff08RHEL\uff09\uff0c\u6211\u4eec\u5c06\u652f\u6301RHEL 8+\uff0c\u542f\u7528RHEL 7\u3002<\/li>\n<li>\u6211\u4eec\u53ea\u4f1a\u53d1\u5e03 RHEL \u7684\u652f\u6301\u58f0\u660e\uff0c\u4f46\u662f\uff0c\u6211\u4eec\u5e0c\u671b\u4e5f\u80fd\u652f\u6301\u5176\u4ed6<a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/linux-support.md%22%20\/l%20%22red-hat-enterprise-linux-family-support%22%20\/t%20%22_blank\">RHEL ecosystem distros<\/a>\u751f\u6001\u7cfb\u7edf\u53d1\u884c\u7248\u3002<\/li>\n<\/ul>\n<p>\u91cd\u5927\u53d8\u5316\u4e3b\u8981\u5c31\u8fd9\u4e9b\u3002\u6211\u4eec\u4ecd\u5c06\u652f\u6301\u5728 Arm32\u3001Arm64 \u548c x64 \u67b6\u6784\u4e0a\u57fa\u7840\u4e0a\u4f7f\u7528 Linux\u3002<\/p>\n<p>\u8bf7\u6ce8\u610f\uff0c\u8fd9\u4e9b\u66f4\u6539\u4ec5\u9002\u7528\u4e8e Microsoft \u5185\u90e8\u7248\u672c\u3002\u4f7f\u7528<a href=\"https:\/\/github.com\/dotnet\/source-build%22%20\/t%20%22_blank\">source-build<\/a>\u202f\u6784\u5efa\u7684\u4e0d\u540c\u7ec4\u7ec7\u53ef\u80fd\u60c5\u51b5\u4e0d\u540c\uff0c\u901a\u5e38\u4e3a\u4e86\u4e00\u4e2a\u6784\u5efa\u751f\u6210\u6784\u5efa\u7248\u672c\u4ec5\u9002\u7528\u4e8e\u4e00\u4e2a\u53d1\u884c\u7248\u7248\u672c\uff0c\u4f8b\u5982 Ubuntu 24.04\u3002<\/p>\n<p>\u4e0b\u9762\u6f14\u793a\u4e86 Ubuntu 16.04 glibc \u7248\u672c\u4ee5\u53ca\u5176\u7528\u4e8e\u5176\u4ed6\u53d1\u884c\u7248\u7684\u6a21\u5f0f\u3002<\/p>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">$ docker run --rm ubuntu:16.04 ldd --version\r\nldd (Ubuntu GLIBC 2.23-0ubuntu11.3) 2.23\r\nCopyright (C) 2016 Free Software Foundation, Inc.\r\nThis is free software; see the source for copying conditions.  There is NO\r\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r\nWritten by Roland McGrath and Ulrich Drepper.<\/code><\/pre>\n<h5><strong>\u4ee3\u7801\u7684\u751f\u6210<\/strong><\/h5>\n<p><strong>\u793e\u533a<\/strong><strong>PRs (<\/strong><strong>\u975e\u5e38\u611f\u8c22<\/strong><strong>JIT<\/strong><strong>\u8bba\u575b\u7684<\/strong><strong>contributors!)<\/strong><\/p>\n<ul>\n<li>@am11 \u66f4\u65b0\u4e86 CLRConfiguration \u548c jithost \u4e2d\u7684 env \u53d8\u91cf\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77025\">PR#77025<\/a>.<\/li>\n<li>@En3Tho \u5c06\u202f(X\u202f&amp;\u202f1)\u202f!=\u202f0\u202f\u4f18\u5316\u4e3a\u202f(X\u202f&amp;\u202f1)\u202f\u548c\u202f(X\u202f&amp;\u202f1)\u202f==\u202f0\u202f\u4ee5\u53ca\u202f((NOT X)\u202f&amp;\u202f1)\u202fin\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/74806\">PR#74806<\/a>, \u5e76\u4fee\u590d\u4e86\u4e0e faulty LIR range\u76f8\u5173\u7684\u6f0f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77166%22%20\/t%20%22_blank\">PR#77166<\/a>.<\/li>\n<li>@MichalPetryka \u5b9e\u73b0\u4e86IsEnum\u202f\u548c\u202fType.GetEnumUnderlyingType\u202f\u5728\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/71685\">PR#71685<\/a>\u7684\u5185\u90e8\u51fd\u6570\uff0c \u5e76\u5c06MemoryMarshal.GetArrayDataReference\u202f\u8f6c\u6362\u4e3a JIT \u5185\u90e8\u51fd\u6570\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/79760\">PR#79760<\/a>.<\/li>\n<li>@pedrobsaila \u5728\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/62689\">PR#62689<\/a>\u202f\u4e2d\u505a\u51fa\u4e86\u7b2c\u4e00\u4e2a PR \u8d21\u732e\uff0c\u53d1\u51fa\u65e0\u5206\u652f\u8868\u5355\u4ece\u202f(x\u202f&gt;=\u202f0\u202f&amp;&amp;\u202fy\u202f&gt;=\u202f0)\u202f\u5230\u202f(x\u202f|\u202fy)\u202f&gt;=\u202f0\u202f\uff0c\u4ece\u202f(x\u202f!=\u202f0\u202f&amp;&amp;\u202fy\u202f!=\u202f0)\u202f\u5230\u202f(x\u202f|\u202fy)\u202f!=\u202f0.<\/li>\n<li>@a74nh, @AndyJGraham and @swapnilGaikwad\u5bf9 Arm64 \u6027\u80fd\u6539\u8fdb\u505a\u51fa\u4e86\u8d21\u732e\uff08\u8bf7\u53c2\u9605 Arm64 \u90e8\u5206\uff09\u3002<\/li>\n<li>@DeepakRajendrakumaran \u4e3aAVX-512\u505a\u51fa\u4e86\u8d21\u732e\uff08\u89c1AVX-512\u90e8\u5206\uff09\u3002<\/li>\n<li>@SingleAccretion \u4e3a\u9884\u89c8\u7248\u672c1\u8fdb\u884c\u4e8672\u4e2a\u62c9\u53d6\u8bf7\u6c42\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pulls?q=is%3Apr+merged%3A2022-08-15..2023-01-31+-base%3Arelease%2F7.0+label%3Aarea-CodeGen-coreclr+author%3Asingleaccretion\"><strong>72<\/strong>\u202fPR contributions<\/a>\u202f\u5176\u4e2d\u6709:<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/72719\">PR#72719<\/a>\u202f\u4f18\u5316\u7684\u5185\u5b58\u52a0\u8f7d\/\u5728\u5f3a\u5236\u8f6c\u6362\u4e0b\u5b58\u50a8<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77238\">PR#77238<\/a>\u202f\u548c\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/76139\">PR#76139<\/a>\u202f\u662f\u4e0e SSA \u76f8\u5173\u7684\u6539\u8fdb<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/78246\">PR#78246<\/a>\u202f\u901a\u8fc7\u5220\u9664 ADDR \u8282\u70b9\u7b80\u5316 JIT IR<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77990\">PR#77990<\/a>\u202f\u4f18\u5316\u56fa\u5b9a\u5b58\u50a8<\/li>\n<\/ul>\n<p><strong>\u4e91\u539f\u751f<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/79709\">PR#79709<\/a>\u202f\u5220\u9664\u4e86\u975e GC \u9759\u6001\u5b57\u6bb5\u7684\u5e2e\u52a9\u7a0b\u5e8f\u8c03\u7528\uff0c <a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/80969\">PR#80969<\/a>\u202f\u4f18\u5316\u4e86 GC \u7c7b\u578b\u7684\u9759\u6001\u5b57\u6bb5\u3002<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/80831\">PR#80831<\/a>\u202f\u5bf9\u5355\u6001\u6848\u4f8b\u5b9e\u73b0\u5c06\u5f3a\u5236\u8f6c\u6362\u5230\u63a5\u53e3\u8fdb\u884c\u975e\u865a\u62df\u5316\u3002<\/li>\n<\/ul>\n<p><strong>Arm64<\/strong><\/p>\n<p>Arm64 \u6027\u80fd\u6539\u8fdb\u5de5\u4f5c\u6b63\u5728\u6309\u8ba1\u5212\u8fdb\u884c<a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/77010%22%20\/t%20%22_blank\">Issue#77010<\/a>.<\/p>\n<ul>\n<li>@AndyJGraham and @a74nh \u5b9e\u65bd\u4e86\u4e0e ldp \u548c stp \u76f8\u5173\u7684\u7aa5\u89c6\u5b54\u4f18\u5316\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77540\">PR#77540<\/a>.<\/li>\n<li>@a74nh \u5728<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/73472%22%20\/t%20%22_blank\">PR#73472<\/a>,\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77728\">PR#77728<\/a>,\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/78223\">PR#78223<\/a>, \u548c\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77888\">PR#77888<\/a>\u4e2d\u542f\u7528\u2018If Conversion\u2019<\/li>\n<li>@swapnilGaikwad \u5728\u6761\u4ef6\u9009\u62e9\u4e2d\u4f7f\u7528\u96f6\u5bc4\u5b58\u5668(csel) \u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/78330\">PR#78330<\/a>.<\/li>\n<li>@SwapnilGaikwad \u5728\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/79550\">PR#79550<\/a>\u542f\u7528\u202fmneg\u202f, \u591a\u9009\u62e9\u4e2d\u7684\u4e00\u9879 (<a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/68028\">Issue#68028<\/a>).<\/li>\n<li>\u901a\u8fc7\u6bd4\u8f83<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/75864\">PR#75864<\/a>\u202f\u548c\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/75999\">PR#75999<\/a><u>\u5f97\u51fa<\/u>\u66f4\u5feb\u7684\u77e2\u91cf\u3002<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/75823\">PR#75823<\/a>\u202f\u6dfb\u52a0\u4e86\u5bf9 Arm64 \u4e0a\u7684\u201c\u79fb\u4f4d\u5bc4\u5b58\u5668\u201d\u64cd\u4f5c\u7684\u652f\u6301\u3002<\/li>\n<\/ul>\n<p><strong>AVX-512<\/strong><\/p>\n<p>.NET 8 \u5c06\u6309\u8ba1\u5212\u652f\u6301 AVX-512 ISA \u6269\u5c55\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/77034\">Issue#77034<\/a>.<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/76642\">PR#76642<\/a>\u202f\u5b9e\u73b0\u4e86 API, \u516c\u5f00<a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/73262%22%20\/t%20%22_blank\">Issue#73262<\/a>\u4e2dVector512&lt;T&gt;\u202f\u7c7b\u578b\u3002<\/li>\n<li>\u865a\u62df\u673a\u4e2d\u6dfb\u52a0 AVX-512 \u72b6\u6001\u5df2\u901a\u8fc7 @DeepakRajendrakumaran \u7684\u540c\u610f\u6536\u5230\u652f\u6301\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/74113\">PR#74113<\/a>.<\/li>\n<li>@DeepakRajendrakumaran \u6dfb\u52a0\u4e86\u5bf9emitOutput*\u202f\u8f93\u51fa* \u8def\u5f84\u7684 EVEX \u7f16\u7801\u652f\u6301<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/75934%22%20\/t%20%22_blank\">PR#75934<\/a>,\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77419\">PR#77419<\/a>\u202f\u548c\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/78044\">PR#78044<\/a>.<\/li>\n<li>JitInterface \u5df2\u7531@DeepakRajendrakumaran \u66f4\u65b0\u4e3a Vector512\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/81197\">PR#81197<\/a>.<\/li>\n<\/ul>\n<p><strong>\u4e00\u822c<\/strong><strong>SIMD<\/strong><strong>\u6539\u8fdb<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77562\">PR#77562<\/a>\u202f\u4e3a\u5728<a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/76593\">Issue#76593<\/a>\u5b9a\u4e49\u7684\u202fVector64\/128\/256\/512&lt;T&gt;\u202f\u548c\u202fVector&lt;T&gt;\u4e0a\u65b0\u6279\u51c6\u7684 API \u5b9e\u65bd\u4e86\u989d\u5916\u7684\u5185\u90e8\u51fd\u6570\u3002<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/79720\">PR#79720<\/a>\u202f\u4f7f\u7528HWIntrinsics \u5b9e\u73b0\u202fVector2\/3\/4\u202f\u548c\u202fVector&lt;T&gt;\u202f\u3002<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77947\">PR#77947<\/a>\u202f\u4e3a\u202fOrdinalIgnoreCase\u77e2\u91cf\u5316Equals\u3002<\/li>\n<\/ul>\n<p><strong>PGO<\/strong><\/p>\n<p>PGO \u7684\u57fa\u672c\u6539\u8fdb\u6b63\u5728\u6309\u8ba1\u5212\u8fdb\u884c\u4e2d\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/74873\">Issue#74873<\/a>.<\/p>\n<ul>\n<li>\u5f15\u5165\u4e86\u65b0\u7684 JIT \u5c42\uff0c\u4ee5\u4ec5\u68c0\u6d4b\u70ed Tier0 \u548c R2R \u4ee3\u7801\u3002\u8fd9\u610f\u5473\u7740\u60a8\u4e0d\u518d\u9700\u8981\u7981\u7528 ReadyToRun \u5e76\u727a\u7272\u542f\u52a8\u65f6\u95f4\u6765\u83b7\u5f97\u5b8c\u5168 PGO \u7ea7\u522b\u7684\u6027\u80fd\u4f18\u52bf\uff1a\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/70941\">PR#70941<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/80481\">PR#80481<\/a>\u202f\u4e3a\u6240\u6709\u573a\u666f\u542f\u7528\u4e86\u57fa\u4e8e\u8fb9\u7f18\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/li>\n<li>\u6784\u5efa\u9884\u6d4b\u5217\u8868\u5df2\u79fb\u81f3 JIT \u7684\u65e9\u671f\u9636\u6bb5\uff1a<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/80625%22%20\/t%20%22_blank\">PR#80625<\/a>,\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/80856\">PR#80856<\/a>,\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/81288\">PR#81288<\/a>,\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/81246\">PR#81246<\/a>,\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/81196\">PR#81196<\/a>,\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/81000\">PR#81000<\/a>, \u548c\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/80891\">PR#80891<\/a>\u3002<\/li>\n<\/ul>\n<p><strong>\u5faa\u73af\u4f18\u5316<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/75140\">PR#75140<\/a>\u202f\u5728\u5faa\u73af\u514b\u9686\u4e2d\u652f\u6301\u59d4\u6258GDV guards\u3002<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/80353\">PR#80353<\/a>\u202f\u6269\u5c55\u5faa\u73af\u5c55\u5f00\u4f18\u5316<\/li>\n<\/ul>\n<p><strong>\u4e00\u822c\u4f18\u5316<\/strong><\/p>\n<ul>\n<li>@SingleAccretion \u5728<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/76263%22%20\/t%20%22_blank\">PR#76263<\/a> Long\u4e2d\u542f\u7528\u4e8632 \u4f4d\u89e3\u9501\u5b57\u6bb5\u6ce8\u518c\u4e0a\u7684\u591a\u6ce8\u518c\u53d8\u91cf\u63d0\u5347\u3002<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77103\">PR#77103<\/a>\u202f\u5b9e\u65bd\u4e86<a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/8795\">Issue#8795<\/a>\u4e2d\u63d0\u51fa\u7684\u65b0\u5c3e\u90e8\u5408\u5e76\u4f18\u5316\u3002<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/81055\">PR#81055<\/a>\u202f\u786e\u4fddSpan&lt;T&gt;.Length\u202f\u548c\u202fROSpan&lt;T&gt;.Length\u202f\u88ab\u8bc6\u522b\u4e3a\u201cnever negative\u201d.<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/79346\">PR#79346<\/a>\u202f\u6dfb\u52a0\u4e86\u4e00\u4e2a\u65e9\u671f\u7684\u6d3b\u8dc3\u5ea6\u4f20\u9012\uff0c\u5141\u8bb8 JIT \u5728\u4f20\u9012\u7ed3\u6784\u53c2\u6570\u65f6\u5220\u9664\u5927\u91cf\u4e0d\u5fc5\u8981\u7684\u7ed3\u6784\u526f\u672c\u3002<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77874\">PR#77874<\/a>\u202f\u5220\u9664\u4e86\u4e00\u4e9b\u6d89\u53ca\u5c0f\u6574\u6570\u7c7b\u578b\u7684\u7b80\u5355\u64cd\u4f5c\u7684\u4e0d\u5fc5\u8981\u7684\u96f6\/\u7b26\u53f7\u6269\u5c55\u6307\u4ee4\u3002<\/li>\n<li>\u5b57\u7b26\u4e32\u6587\u5b57\u3001typeof()\u3001\u9759\u6001\u5b57\u6bb5\u901a\u8fc7<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/49576%22%20\/t%20%22_blank\">PR#49576<\/a>,\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/75573\">PR#75573<\/a>\u548c\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/76112\">PR#76112<\/a>.<\/li>\n<li>\u5141\u8bb8 JIT \u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u7701\u7565 GC \u5199\u969c\u788d\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/76135\">PR#76135<\/a>.<\/li>\n<li>typeof(..)\u202f\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u4e0d\u518d\u9700\u8981\u52a9\u624b\u8c03\u7528\uff0c\u4f8b\u5982\uff1a<\/li>\n<\/ul>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">Type GetMyType() =&gt; typeof(string);<\/code><\/pre>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">; Method MyType():System.Type:this<\/code><\/pre>\n<ul>\n<li>4883EC28 sub rsp, 40<\/li>\n<li>48B918083857FC7F0000 mov rcx, 0x7FFC57380818<\/li>\n<li>E80DE8AB5F call CORINFO_HELP_TYPEHANDLE_TO_RUNTIMETYPE<\/li>\n<li>90 nop<\/li>\n<li>4883C428 add rsp, 40<\/li>\n<li>48B8B800000364020000 mov rax, 0x264030000B8 ; \u2018System.String\u2019 C3 ret\n-; Total bytes of code: 25 +; Total bytes of code: 11<\/li>\n<li>\u9759\u6001\u548c\u9759\u6001\u53ea\u8bfb\u5b57\u6bb5\u7684\u4e00\u6279\u6539\u8fdb\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77102\">PR#77102<\/a>,\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77593\">PR#77593<\/a>,\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77354\">PR#77354<\/a>,\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/77737\">PR#77737<\/a>,\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/78593\">PR#78593<\/a>,\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/78736\">PR#78736<\/a>\u202fand\u202f<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/78783\">PR#78783<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/81005\">PR#81005<\/a> \u4e2d\u663e\u793a\u7684\u8868\u8fbe\u5f0f\u5c31\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u4f8b\u5b50\u3002 JIT \u73b0\u5728\u80fd\u591f\u5728 .NET 8 \u4e2d\u6298\u53e0\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<p><strong>JIT <\/strong><strong>\u541e\u5410\u91cf\u6539\u8fdb<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/80265\">PR#80265<\/a>\u202f\u5c06 JitHashTable \u8fed\u4ee3\u8f6c\u6362\u4e3a\u57fa\u4e8e\u8303\u56f4\u7684\u8fed\u4ee3for\uff0c\u5c06\u541e\u5410\u91cf\u63d0\u9ad8\u4e8622%\u3002<\/li>\n<\/ul>\n<h4><strong>\u793e\u533a\u805a\u7126<\/strong><strong>(Youssef Victor)<\/strong><\/h4>\n<p>\u5982\u679c\u6ca1\u6709 .NET \u793e\u533a\u6210\u5458\u8d21\u732e\u7684\u5927\u91cf\u5468\u5168\u7684\u5efa\u8bae\u548c\u610f\u89c1\uff0c.NET \u5c31\u65e0\u6cd5\u88ab\u5982\u6b64\u5e7f\u6cdb\u7684\u63a8\u5e7f\u3002\u7279\u522b\u611f\u8c22\u8fd9\u7bc7\u6587\u7ae0\u7684\u4f5c\u8005\u2014\u2014\u793e\u533a\u4e4b\u661f\u6210\u5458 <a href=\"https:\/\/github.com\/Youssef1313\">@Youssef Victor<\/a>, \u4ed6\u5206\u4eab\u4e86\u4f5c\u4e3a\u5fae\u8f6f MVP \u7684\u7ecf\u5386\u3002<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-content\/uploads\/sites\/75\/2023\/03\/dotnet-8-preview-1-community-spotlight.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-303\" src=\"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-content\/uploads\/sites\/75\/2023\/03\/dotnet-8-preview-1-community-spotlight-300x300.jpg\" alt=\"Image dotnet 8 preview 1 community spotlight\" width=\"300\" height=\"300\" srcset=\"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-content\/uploads\/sites\/75\/2023\/03\/dotnet-8-preview-1-community-spotlight-300x300.jpg 300w, https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-content\/uploads\/sites\/75\/2023\/03\/dotnet-8-preview-1-community-spotlight-150x150.jpg 150w, https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-content\/uploads\/sites\/75\/2023\/03\/dotnet-8-preview-1-community-spotlight-24x24.jpg 24w, https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-content\/uploads\/sites\/75\/2023\/03\/dotnet-8-preview-1-community-spotlight-48x48.jpg 48w, https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-content\/uploads\/sites\/75\/2023\/03\/dotnet-8-preview-1-community-spotlight-96x96.jpg 96w, https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-content\/uploads\/sites\/75\/2023\/03\/dotnet-8-preview-1-community-spotlight.jpg 460w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Youssef\u2019s \u81ea\u8ff0:<\/p>\n<p>\u201c\u6211\u53ebYoussef Victor\uff0c\u662f\u4e9a\u5386\u5c71\u5927\u5927\u5b66\u8ba1\u7b97\u673a\u4e0e\u901a\u4fe1\u7cfb\u7684\u672c\u79d1\u751f\u3002\u6211\u4ece 2019 \u5e74\u5f00\u59cb\u4e3a .NET \u7ec4\u7ec7\uff08\u5177\u4f53\u6765\u8bf4\uff0c\u662f dotnet\/docs \u548c dotnet\/samples \u5b58\u50a8\u5e93\uff09\u8d21\u732e\u81ea\u5df1\u7684\u529b\u91cf\u3002<\/p>\n<p>\u8bf4\u8d77\u6765\u4e8b\u53d1\u5076\u7136\uff0c\u5f53\u65f6\u6211\u53d1\u73b0\u4e00\u4e9b\u4e0e .NET \u7f16\u7801\u6307\u5357\u8fdd\u80cc\u7684\u793a\u4f8b\uff0c\u5e76\u5728 docs.microsoft.com\uff08\u73b0\u5728\u662flearn.microsoft.com\uff09\u4e2d\u627e\u5230\u4e86\u5c0f\u7f16\u8f91\u6309\u94ae\u3002\u6211\u51b3\u5b9a\u5206\u53c9\u5b58\u50a8\u5e93\u5e76\u8fdb\u884c\u4e00\u4e9b\u66f4\u6539\u3002\u8be5\u56e2\u961f\u4e0e\u50cf\u6211\u4e00\u6837\u7684\u8d21\u732e\u8005\u6c9f\u901a\u826f\u597d\uff0c\u4ed6\u4eec\u5408\u5e76 PR \u7684\u901f\u5ea6\u4e5f\u5f88\u8fc5\u901f\uff01\u5728\u90a3\u4e4b\u540e\u6211\u4e00\u76f4\u4e3a\u6b64\u52aa\u529b\uff0c\u8bd5\u5c3d\u6211\u6240\u80fd\u5e2e\u52a9\u6539\u8fdb\u6587\u6863\u3002<\/p>\n<p>\u540e\u6765\uff0c\u6211\u7814\u7a76\u4e86\u6240\u7528\u4ea7\u54c1\u7684\u4ee3\u7801\uff0c\u53d1\u73b0dotnet\/roslyn\u548cdotnet\/roslyn-analyzers\u8fd9\u4e24\u4e2a\u5b58\u50a8\u5e93\u5f88\u6709\u8da3\u3002\u76f8\u5e94\u7684\u56e2\u961f\u4e5f\u548c\u6587\u6863\u56e2\u961f\u4e00\u6837\u4e50\u4e8e\u52a9\u4eba\u3002\u5728\u6211\u7684\u53c2\u4e0e\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4ed6\u4eec\u63d0\u4f9b\u4e86\u5f88\u591a\u5e2e\u52a9\u3002\u5bf9\u4e8e dotnet\/roslyn-analyzers \u5b58\u50a8\u5e93\uff0c\u6211\u5e2e\u52a9\u56e2\u961f\u6839\u636e\u73b0\u6709\u95ee\u9898\u7f16\u5199\u65b0\u7684\u5206\u6790\u5668\uff0c\u8fdb\u884c\u4ee3\u7801\u4fee\u590d\uff0c\u9488\u5bf9\u4e3a\u65b0\u7684\u5206\u6790\u5668\u63d0\u51fa\u7684\u5efa\u8bae\u5efa\u7acb\u65b0\u95ee\u9898\uff0c\u4fee\u590d\u6f0f\u6d1e\uff0c\u5ba1\u67e5\u4ee3\u7801\uff0c\u6700\u8fd1\u8fd8\u4e00\u8d77\u5bf9\u95ee\u9898\u8fdb\u884c\u5206\u7c7b\u3002\u6211\u901a\u8fc7\u7f16\u8bd1\u5668\u5bf9dotnet\/roslyn repo\u63d0\u4f9b\u5e2e\u52a9\uff0c\u5305\u62ec\u53c2\u4e0e\u4e86\u4e00\u4e2a\u540d\u4e3aCallerArgumentExpression\u7684C# 10\u8bed\u8a00\u529f\u80fd\u5f00\u53d1\u3002\u8fd8\u4fee\u590d\u4e86\u4e00\u4e9b\u6f0f\u6d1e\u3002<\/p>\n<p>\u5176\u4f59\u65f6\u95f4\u6211\u90fd\u901a\u8fc7IDE\u8fdb\u884c\u64cd\u4f5c\uff0c\u5305\u62ecIntelliSense\u95ee\u9898\uff0c\u7a81\u51fa\u663e\u793a\u95ee\u9898\uff0c\u4e3a\u65b0\u8bed\u8a00\u529f\u80fd\u5b9e\u73b0\u751f\u4ea7\u529b\u529f\u80fd\u7b49\u3002\u8fd9\u662f\u4e00\u6b21\u4e4b\u524d\u6211\u6839\u672c\u6ca1\u60f3\u8fc7\u7684\u7ecf\u5386\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u6211\u7684\u8d21\u732e\u5f97\u5230\u4e86\u8ba4\u53ef\uff0c\u6211\u88ab\u63d0\u540d\u5e76\u88ab\u9009\u4e3a\u5fae\u8f6fMVP\uff01\u201c<\/p>\n<h4><strong>\u7ed3\u8bed<\/strong><\/h4>\n<p>\u603b\u4e4b\uff0c.NET 8 \u9884\u89c8\u7248 1\u7684\u53d1\u5e03\u662f Microsoft \u591a\u5143\u5316\u5de5\u7a0b\u5e08\u56e2\u961f\u4e0e\u9ad8\u5ea6\u53c2\u4e0e\u7684\u5f00\u6e90\u793e\u533a\u4e4b\u95f4\u826f\u597d\u534f\u4f5c\u7684\u8bc1\u660e\u3002.NET 8 \u4e2d\u7684\u65b0\u529f\u80fd\u548c\u6539\u8fdb\u662f\u793e\u533a\u6210\u5458\u8f9b\u52e4\u52aa\u529b\u548c\u5949\u732e\u7684\u6210\u679c\uff0c\u6211\u4eec\u975e\u5e38\u611f\u8c22\u5927\u5bb6\u505a\u51fa\u7684\u8d21\u732e\u3002<\/p>\n<p>\u8be5\u793e\u533a\u91cd\u89c6\u5305\u5bb9\u6027\u548c\u591a\u6837\u6027\uff0c\u80fd\u6210\u4e3a\u5176\u4e2d\u7684\u4e00\u5458\uff0c\u6211\u4eec\u5f88\u81ea\u8c6a\u3002\u6211\u4eec\u81f4\u529b\u4e8e\u5efa\u7acb\u4e00\u4e2a\u4eba\u4eba\u90fd\u53ef\u4ee5\u8bbf\u95ee\u7684\u6280\u672f\u751f\u6001\u7cfb\u7edf\u3002\u6211\u4eec\u76f8\u4fe1\uff0c\u53ea\u8981\u6211\u4eec\u4e00\u8d77\u52aa\u529b\uff0c\u5c31\u53ef\u4ee5\u53d6\u5f97\u4f1f\u5927\u7684\u80dc\u5229\uff0c\u6211\u4eec\u5bf9.NET \u7684\u672a\u6765\u5145\u6ee1\u671f\u5f85\u3002<\/p>\n<p>\u6211\u4eec\u8981\u5411\u5df2\u7ecf\u4e3a .NET 8 \u505a\u8fc7\u8d21\u732e\u7684\u6bcf\u4e2a\u4eba\u8868\u793a\u8877\u5fc3\u7684\u611f\u8c22\uff0c\u6211\u4eec\u5c06\u611f\u8c22\u5199\u5728\u8fd9\u91cc<a href=\"https:\/\/dotnet.microsoft.com\/thanks\">sincere thanks to everyone who has contributed to .NET 8 so far<\/a>, \u65e0\u8bba\u60a8\u662f\u5e2e\u52a9\u6211\u4eec\u4fee\u6539\u8fc7\u4ee3\u7801\u3001\u62a5\u544a\u8fc7\u9519\u8bef\u8fd8\u662f\u63d0\u4f9b\u8fc7\u53cd\u9988\uff0c\u60a8\u6240\u505a\u51fa\u7684\u7684\u8d21\u732e\u90fd\u4f7f\u5f97.NET 8 \u9884\u89c8\u7248 1\u6700\u540e\u5f97\u4ee5\u4e0a\u7ebf\u3002\u6211\u4eec\u671f\u5f85\uff0c\u5728\u5927\u5bb6\u575a\u6301\u4e0d\u61c8\u7684\u52aa\u529b\u4e0b\uff0c.NET \u548c\u6574\u4e2a\u6280\u672f\u793e\u533a\u80fd\u62e5\u6709\u66f4\u5149\u660e\u7684\u672a\u6765\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u7ffb\u8bd1\u4e8eJeremy Likness\u7684\u8fd9\u7bc7\u82f1\u6587\u6587\u7ae0\uff1aAnnouncing .NET 8 Preview 1 &#8211; .NET Blog (microsoft.com). \u6b22\u8fce\u4f7f\u7528 .NET 8! \u7b2c\u4e00\u4e2a\u9884\u89c8\u7248\u53ef\u4f9b\u60a8\u4e0b\u8f7d:\u202fclaim your copy of the first .NET 8 preview\u202f\u5e76\u7acb\u5373\u5f00\u59cb\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u3002\u5411\u4e0b\u6eda\u52a8\u4ee5\u67e5\u770b\u6b64\u9884\u89c8\u4e2d\u5305\u542b\u7684\u529f\u80fd\u5217\u8868\u3002.NET 8 \u662f\u4e00\u4e2a\u957f\u671f\u652f\u6301 (LTS) \u7248\u672c\u3002\u8fd9\u7bc7\u535a\u6587\u6db5\u76d6\u4e86\u63a8\u52a8\u589e\u5f3a\u529f\u80fd\u4f18\u5148\u7ea7\u6392\u5e8f\u548c\u9009\u62e9\u5f00\u53d1\u7684\u4e3b\u8981\u4e3b\u9898\u548c\u76ee\u6807\u3002.NET 8\u9884\u89c8\u7248\u548c\u53d1\u5e03\u5019\u9009\u7248\u672c\u5c06\u6bcf\u6708\u4ea4\u4ed8\u4e00\u6b21\u3002 \u50cf\u5f80\u5e38\u4e00\u6837\uff0c\u6700\u7ec8\u7248\u672c\u5c06\u5728 11 \u6708\u7684\u67d0\u4e2a\u65f6\u5019\u5728 .NET Conf \u4e0a\u53d1\u5e03\u3002 .NET \u7248\u672c\u5305\u62ec\u4ea7\u54c1\u3001\u5e93\u3001\u8fd0\u884c\u65f6\u548c\u5de5\u5177\uff0c\u4ee3\u8868Microsoft \u5185\u5916\u591a\u4e2a\u56e2\u961f\u4e4b\u95f4\u7684\u534f\u4f5c\u3002 \u8fd9\u7bc7\u535a\u6587\u4e2d\u6db5\u76d6\u7684\u66f4\u5e7f\u6cdb\u7684\u4e3b\u9898\u5e76\u4e0d\u5305\u542b.NET 8\u7684\u6240\u6709\u5173\u952e\u573a\u666f\u548c\u6295\u8d44\u3002\u5b83\u4eec\u4ee3\u8868\u4e86\u5f88\u5927\u7684\u9886\u57df\uff0c\u4f46\u53ea\u662f\u8fdb\u5165.NET 8 \u7684\u6240\u6709\u91cd\u8981\u5de5\u4f5c\u7684\u4e00\u90e8\u5206\u3002\u6211\u4eec\u8ba1\u5212\u5bf9ASP.NET Core, Blazor, EF Core, WinForms, WPF\u548c\u5176\u4ed6\u5e73\u53f0\u8fdb\u884c\u5e7f\u6cdb\u7684\u6295\u8d44\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u9605\u8bfb\u4ea7\u54c1\u8def\u7ebf\u56fe\u4e86\u89e3\u6709\u5173\u8fd9\u4e9b\u9886\u57df\u7684\u66f4\u591a\u4fe1\u606f\uff1a NET Core \u548c Blazor EF 8 Roadmap NET .NET [&hellip;]<\/p>\n","protected":false},"author":113098,"featured_media":301,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[2],"class_list":["post-300","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet-ch","tag-net"],"acf":[],"blog_post_summary":"<p>\u672c\u6587\u7ffb\u8bd1\u4e8eJeremy Likness\u7684\u8fd9\u7bc7\u82f1\u6587\u6587\u7ae0\uff1aAnnouncing .NET 8 Preview 1 &#8211; .NET Blog (microsoft.com). \u6b22\u8fce\u4f7f\u7528 .NET 8! \u7b2c\u4e00\u4e2a\u9884\u89c8\u7248\u53ef\u4f9b\u60a8\u4e0b\u8f7d:\u202fclaim your copy of the first .NET 8 preview\u202f\u5e76\u7acb\u5373\u5f00\u59cb\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u3002\u5411\u4e0b\u6eda\u52a8\u4ee5\u67e5\u770b\u6b64\u9884\u89c8\u4e2d\u5305\u542b\u7684\u529f\u80fd\u5217\u8868\u3002.NET 8 \u662f\u4e00\u4e2a\u957f\u671f\u652f\u6301 (LTS) \u7248\u672c\u3002\u8fd9\u7bc7\u535a\u6587\u6db5\u76d6\u4e86\u63a8\u52a8\u589e\u5f3a\u529f\u80fd\u4f18\u5148\u7ea7\u6392\u5e8f\u548c\u9009\u62e9\u5f00\u53d1\u7684\u4e3b\u8981\u4e3b\u9898\u548c\u76ee\u6807\u3002.NET 8\u9884\u89c8\u7248\u548c\u53d1\u5e03\u5019\u9009\u7248\u672c\u5c06\u6bcf\u6708\u4ea4\u4ed8\u4e00\u6b21\u3002 \u50cf\u5f80\u5e38\u4e00\u6837\uff0c\u6700\u7ec8\u7248\u672c\u5c06\u5728 11 \u6708\u7684\u67d0\u4e2a\u65f6\u5019\u5728 .NET Conf \u4e0a\u53d1\u5e03\u3002 .NET \u7248\u672c\u5305\u62ec\u4ea7\u54c1\u3001\u5e93\u3001\u8fd0\u884c\u65f6\u548c\u5de5\u5177\uff0c\u4ee3\u8868Microsoft \u5185\u5916\u591a\u4e2a\u56e2\u961f\u4e4b\u95f4\u7684\u534f\u4f5c\u3002 \u8fd9\u7bc7\u535a\u6587\u4e2d\u6db5\u76d6\u7684\u66f4\u5e7f\u6cdb\u7684\u4e3b\u9898\u5e76\u4e0d\u5305\u542b.NET 8\u7684\u6240\u6709\u5173\u952e\u573a\u666f\u548c\u6295\u8d44\u3002\u5b83\u4eec\u4ee3\u8868\u4e86\u5f88\u5927\u7684\u9886\u57df\uff0c\u4f46\u53ea\u662f\u8fdb\u5165.NET 8 \u7684\u6240\u6709\u91cd\u8981\u5de5\u4f5c\u7684\u4e00\u90e8\u5206\u3002\u6211\u4eec\u8ba1\u5212\u5bf9ASP.NET Core, Blazor, EF Core, WinForms, WPF\u548c\u5176\u4ed6\u5e73\u53f0\u8fdb\u884c\u5e7f\u6cdb\u7684\u6295\u8d44\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u9605\u8bfb\u4ea7\u54c1\u8def\u7ebf\u56fe\u4e86\u89e3\u6709\u5173\u8fd9\u4e9b\u9886\u57df\u7684\u66f4\u591a\u4fe1\u606f\uff1a NET Core \u548c Blazor EF 8 Roadmap NET .NET [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/posts\/300","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\/113098"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/comments?post=300"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/posts\/300\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/media\/301"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/media?parent=300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/categories?post=300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/tags?post=300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}