{"id":427,"date":"2023-07-21T02:17:15","date_gmt":"2023-07-21T09:17:15","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/?p=427"},"modified":"2023-07-21T02:17:15","modified_gmt":"2023-07-21T09:17:15","slug":"net-8-preview-5%e6%8e%a8%e5%87%ba%ef%bc%81","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/net-8-preview-5%e6%8e%a8%e5%87%ba%ef%bc%81\/","title":{"rendered":".NET 8 Preview 5\u63a8\u51fa\uff01"},"content":{"rendered":"<p>\u4f5c\u8005\uff1aJiachen Jiang\u00a0 \u539f\u6587\uff1a<a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-dotnet-8-preview-5\/\">Announcing .NET 8 Preview 5 &#8211; .NET Blog (microsoft.com)<\/a><\/p>\n<p>\u6211\u4eec\u5f88\u9ad8\u5174\u4e0e\u60a8\u5206\u4eab <a href=\"https:\/\/dotnet.microsoft.com\/next\">.NET 8 Preview 5<\/a> \u4e2d\u7684\u6240\u6709\u65b0\u529f\u80fd\u548c\u6539\u8fdb\uff01 \u6b64\u7248\u672c\u662f <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-dotnet-8-preview-4\/\">Preview 4 \u7248\u672c<\/a>\u7684\u540e\u7eed\u7248\u672c\u3002 \u5728\u6bcf\u6708\u53d1\u5e03\u7684\u7248\u672c\u4e2d\uff0c\u60a8\u5c06\u770b\u5230\u66f4\u591a\u65b0\u529f\u80fd\u3002.NET 6 \u548c 7 \u7528\u6237\u53ef\u4ee5\u5bc6\u5207\u5173\u6ce8\u6b64\u7248\u672c\uff0c\u800c\u6211\u4eec\u4e5f\u6b63\u5728\u52aa\u529b\u4f7f\u5347\u7ea7\u66f4\u65b9\u4fbf\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u4e0b\u8f7d\u9002\u7528\u4e8e Windows\u3001macOS \u548c Linux \u7684 <a href=\"https:\/\/dotnet.microsoft.com\/download\/dotnet\/8.0\">.NET 8 Preview 5<\/a>\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:\/\/github.com\/dotnet\/dotnet-docker\/blob\/main\/documentation\/supported-tags.md\">\u5bb9\u5668\u56fe\u50cf<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/tree\/main\/release-notes\/8.0\">\u53d1\u884c\u8bf4\u660e<\/a><\/li>\n<li><a href=\"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:\/\/github.com\/dotnet\/core\/issues\">GitHub \u95ee\u9898\u8ddf\u8e2a\u5668<\/a><\/li>\n<\/ul>\n<p>\u60a8\u53ef\u4ee5\u67e5\u770bPreview 5 \u7248\u672c\u4e2d <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/asp-net-core-updates-in-dotnet-8-preview-5\/\">ASP.NET Core<\/a> \u4e2d\u7684\u65b0\u589e\u529f\u80fd\uff0c\u5e76\u4e86\u89e3 <a href=\"https:\/\/learn.microsoft.com\/dotnet\/core\/whats-new\/dotnet-8\">.NET 8 \u4e2d\u7684\u65b0\u589e\u529f\u80fd<\/a>\u548c\u5373\u5c06\u63a8\u51fa\u7684\u65b0\u529f\u80fd\u3002\u5728\u6574\u4e2a\u7248\u672c\u4e2d\uff0c\u8fd9\u4e9b\u65b0\u529f\u80fd\u5c06\u4f1a\u4e0d\u65ad\u66f4\u65b0\u3002<\/p>\n<p>Microsoft Build 2023 \u53d6\u5f97\u4e86\u5de8\u5927\u7684\u6210\u529f\uff0c\u8fd9\u5f88\u5927\u7a0b\u5ea6\u4e0a\u5f52\u529f\u4e8e\u50cf\u60a8\u8fd9\u6837\u7684 .NET \u5f00\u53d1\u8005\uff01.NET\u56e2\u961f\u4e3e\u529e\u7684\u4f1a\u8bae\u5438\u5f15\u4e86\u5927\u91cf\u53c2\u4e0e\u8005 \uff0c\u6211\u4eec\u5728\u4f1a\u4e0a\u8ba8\u8bba\u4e86 .NET 8 \u4e2d\u4e00\u4e9b\u4ee4\u4eba\u5174\u594b\u7684\u529f\u80fd\uff0c\u5e76\u56de\u7b54\u4e86\u4e0e\u4f1a\u8005\u7684\u95ee\u9898\u3002<a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/microsoft-build-2023-and-dotnet\/\">\u8bf7\u52a0\u5165 Microsoft Build 2023 \u7684 .NET \u56e2\u961f\uff01<\/a><\/p>\n<p>\u73b0\u5728\uff0c\u8ba9\u6211\u4eec\u6765\u770b\u770b.NET 8 \u4e2d\u7684\u4e00\u4e9b\u65b0\u529f\u80fd\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2023\/06\/dotnet-8-preview-5.png\" alt=\"Download .NET 8 Preview 5\" \/><\/p>\n<h3><strong>SDK<\/strong><strong>\uff1a<\/strong><strong>Metrics API <\/strong><strong>\u7684\u589e\u5f3a<\/strong><\/h3>\n<p>Preview 5 \u5305\u542b\u5bf9 Metrics API \u7684\u8bb8\u591a\u6539\u8fdb\u548c\u66f4\u65b0\uff0c\u6db5\u76d6\u4e86\u989d\u5916\u7684\u7528\u4f8b\u3002<\/p>\n<h3><strong>\u4f9d\u8d56\u5173\u7cfb\u6ce8\u5165<\/strong> <strong>\uff08<\/strong><strong>DI<\/strong><strong>\uff09<\/strong> <strong>\u53cb\u597d\u7279\u6027<\/strong><strong>\u00a0API<\/strong><\/h3>\n<p>\u6211\u4eec\u63a8\u51fa\u4e86 <span style=\"color: #ff0000;\">IMeterFactory <\/span>\u63a5\u53e3\uff0c\u8be5\u63a5\u53e3\u53ef\u4ee5\u5411 DI \u5bb9\u5668\u6ce8\u518c\u5e76\u7528\u4e8e\u5728\u9694\u79bb\u7684\u73af\u5883\u521b\u5efa Meter \u5bf9\u8c61\u3002<\/p>\n<pre class=\" prettyprinted\" tabindex=\"0\"><code class=\"language-C# prettyprinted\">            <span class=\"com\">\/\/ service is the DI IServiceCollection <\/span>\r\n            <span class=\"com\">\/\/ Register the IMeterFactory to the DI container using the default meter factory implementation. <\/span><span class=\"pln\">\r\n            services<\/span><span class=\"pun\">.<\/span><span class=\"typ\">AddMetrics<\/span><span class=\"pun\">();<\/span><\/code><\/pre>\n<p>\u60a8\u73b0\u5728\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u4ee3\u7801\u521b\u5efaMeter\u5de5\u5382\uff0c\u5e76\u4f7f\u7528\u5b83\u6765\u8f7b\u677e\u521b\u5efa\u65b0\u7684Meter\u5bf9\u8c61\u3002<\/p>\n<pre class=\" prettyprinted\" tabindex=\"0\"><code class=\"language-C# prettyprinted\">            <span class=\"typ\">IMeterFactory<\/span><span class=\"pln\"> meterFactory <\/span><span class=\"pun\">=<\/span><span class=\"pln\"> serviceProvider<\/span><span class=\"pun\">.<\/span><span class=\"typ\">GetRequiredService<\/span><span class=\"pun\">&lt;<\/span><span class=\"typ\">IMeterFactory<\/span><span class=\"pun\">&gt;();<\/span>\r\n\r\n            <span class=\"typ\">MeterOptions<\/span><span class=\"pln\"> options <\/span><span class=\"pun\">=<\/span> <span class=\"kwd\">new<\/span> <span class=\"typ\">MeterOptions<\/span><span class=\"pun\">(<\/span><span class=\"str\">\"MeterName\"<\/span><span class=\"pun\">)<\/span>\r\n            <span class=\"pun\">{<\/span>\r\n                 <span class=\"typ\">Version<\/span> <span class=\"pun\">=<\/span> <span class=\"str\">\"version\"<\/span><span class=\"pun\">,<\/span>\r\n            <span class=\"pun\">};<\/span>\r\n\r\n            <span class=\"typ\">Meter<\/span><span class=\"pln\"> meter <\/span><span class=\"pun\">=<\/span><span class=\"pln\"> meterFactory<\/span><span class=\"pun\">.<\/span><span class=\"typ\">Create<\/span><span class=\"pun\">(<\/span><span class=\"pln\">options<\/span><span class=\"pun\">);<\/span><\/code><\/pre>\n<h3><strong>\u652f\u6301\u521b\u5efa\u5e26\u6709\u6807\u7b7e\u7684<\/strong><strong>Meter<\/strong><strong>\u548c<\/strong><strong>Instrument<\/strong><\/h3>\n<p>Meter\u548cInstrument\u4e5f\u53ef\u4ee5\u4f7f\u7528\u9644\u52a0\u7684\u952e\u503c\u5bf9\u6807\u7b7e\u521b\u5efa\u3002\u8be5\u7279\u6027\u5141\u8bb8\u53d1\u5e03\u7684\u7279\u6027\u805a\u5408\u5668\u6839\u636e\u8fd9\u4e9b\u6807\u8bb0\u533a\u5206\u805a\u5408\u503c\u3002<\/p>\n<pre class=\" prettyprinted\" tabindex=\"0\"><code class=\"language-C# prettyprinted\">            <span class=\"typ\">MeterOptions<\/span><span class=\"pln\"> options <\/span><span class=\"pun\">=<\/span> <span class=\"kwd\">new<\/span> <span class=\"typ\">MeterOptions<\/span><span class=\"pun\">(<\/span><span class=\"str\">\"name\"<\/span><span class=\"pun\">)<\/span>\r\n            <span class=\"pun\">{<\/span>\r\n                <span class=\"typ\">Version<\/span> <span class=\"pun\">=<\/span> <span class=\"str\">\"version\"<\/span><span class=\"pun\">,<\/span>\r\n\r\n                <span class=\"com\">\/\/ Attach these tags to the created meter<\/span>\r\n                <span class=\"typ\">Tags<\/span> <span class=\"pun\">=<\/span> <span class=\"kwd\">new<\/span> <span class=\"typ\">TagList<\/span><span class=\"pun\">()<\/span> <span class=\"pun\">{<\/span> <span class=\"pun\">{<\/span> <span class=\"str\">\"MeterKey1\"<\/span><span class=\"pun\">,<\/span> <span class=\"str\">\"MeterValue1\"<\/span> <span class=\"pun\">},<\/span> <span class=\"pun\">{<\/span> <span class=\"str\">\"MeterKey2\"<\/span><span class=\"pun\">,<\/span> <span class=\"str\">\"MeterValue2\"<\/span> <span class=\"pun\">}<\/span> <span class=\"pun\">}<\/span>\r\n            <span class=\"pun\">};<\/span>\r\n\r\n            <span class=\"typ\">Meter<\/span><span class=\"pln\"> meter <\/span><span class=\"pun\">=<\/span><span class=\"pln\"> meterFactory<\/span><span class=\"pun\">.<\/span><span class=\"typ\">Create<\/span><span class=\"pun\">(<\/span><span class=\"pln\">options<\/span><span class=\"pun\">);<\/span>\r\n\r\n            <span class=\"typ\">Instrument<\/span><span class=\"pln\"> instrument <\/span><span class=\"pun\">=<\/span><span class=\"pln\"> meter<\/span><span class=\"pun\">.<\/span><span class=\"typ\">CreateCounter<\/span><span class=\"str\">&lt;int&gt;<\/span><span class=\"pun\">(<\/span><span class=\"str\">\"counter\"<\/span><span class=\"pun\">,<\/span> <span class=\"kwd\">null<\/span><span class=\"pun\">,<\/span> <span class=\"kwd\">null<\/span><span class=\"pun\">,<\/span> <span class=\"kwd\">new<\/span> <span class=\"typ\">TagList<\/span><span class=\"pun\">()<\/span> <span class=\"pun\">{<\/span> <span class=\"pun\">{<\/span> <span class=\"str\">\"counterKey1\"<\/span><span class=\"pun\">,<\/span> <span class=\"str\">\"counterValue1\"<\/span> <span class=\"pun\">}<\/span> <span class=\"pun\">});<\/span><span class=\"pln\">\r\n            instrument<\/span><span class=\"pun\">.<\/span> <span class=\"typ\">Add<\/span><span class=\"pun\">(<\/span><span class=\"lit\">1<\/span><span class=\"pun\">);<\/span><\/code><\/pre>\n<h3><strong>SDK<\/strong><strong>\uff1a\u6e90\u94fe\u63a5\u662f<\/strong><strong> .NET SDK <\/strong><strong>\u7684\u4e00\u90e8\u5206\uff01<\/strong><\/h3>\n<p>.NET SDK \u73b0\u5728\u5305\u542b\u6e90\u94fe\u63a5\uff0c\u4ee5\u4fbf\u5728\u68c0\u67e5\u6e90\u94fe\u63a5\u7684 NuGet \u5305\u65f6\u589e\u5f3a IDE \u4f53\u9a8c\u3002\u76ee\u7684\u662f\u901a\u8fc7\u5c06\u6e90\u94fe\u63a5\u6346\u7ed1\u5230 SDK \u4e2d\u6765\u6d88\u9664\u5bf9\u5355\u72ecPackageReference\u7684\u9700\u8981\uff0c\u66f4\u591a\u5305\u5c06\u9ed8\u8ba4\u5305\u542b\u6b64\u4fe1\u606f\u3002\u6211\u4eec\u76f8\u4fe1\u8fd9\u5c06\u4e3a\u5f00\u53d1\u4eba\u5458\u521b\u9020\u66f4\u597d\u7684IDE\u4f53\u9a8c\uff01<\/p>\n<p>\u6e90\u94fe\u63a5\u662f\u4e00\u4e2a\u4e0e\u8bed\u8a00\u548c\u6e90\u4ee3\u7801\u7ba1\u7406\u65e0\u5173\u7684\u7cfb\u7edf\uff0c\u7528\u4e8e\u4e3a\u4e8c\u8fdb\u5236\u6587\u4ef6\u63d0\u4f9b\u4e00\u6d41\u7684\u6e90\u4ee3\u7801\u8c03\u8bd5\u4f53\u9a8c\u3002\u8be5\u9879\u76ee\u7684\u76ee\u6807\u662f\u8ba9\u4efb\u4f55\u4eba\u751f\u6210 <a href=\"https:\/\/github.com\/dotnet\/designs\/blob\/main\/accepted\/2020\/diagnostics\/debugging-with-symbols-and-sources.md\">NuGet \u5e93\u4ee5\u4fbf\u4e3a\u5176\u7528\u6237\u63d0\u4f9b\u6e90\u8c03\u8bd5<\/a>\uff0c\u800c\u65e0\u9700\u989d\u5916\u7684\u5de5\u4f5c\u3002\u6e90\u94fe\u63a5\u53d7 Microsoft \u652f\u6301\uff0c\u5e76\u7531 .NET Core \u548c Roslyn \u7b49\u5e93\u542f\u7528\u3002<\/p>\n<p>Visual Studio \u548c\u8bb8\u591a\u5176\u4ed6\u7f16\u8f91\u5668\u652f\u6301\u5728\u8c03\u8bd5\u65f6\u4ece\u7b26\u53f7\u8bfb\u53d6\u6e90\u94fe\u63a5\u4fe1\u606f\u3002\u7f16\u8f91\u5668\u53ef\u4ee5\u4e3a\u7528\u6237\u4e0b\u8f7d\u5e76\u663e\u793a\u9002\u5f53\u7684\u7279\u5b9a\u4e8e\u63d0\u4ea4\u7684\u6e90\u4ee3\u7801\uff0c\u4f8b\u5982\u6765\u81ea <a href=\"https:\/\/raw.githubusercontent.com\/dotnet\/roslyn\/681cbc414542ffb9fb13ded613d26a88ea73a44b\/src\/VisualStudio\/Core\/Def\/Implementation\/ProjectSystem\/AbstractProject.cs\">raw.githubusercontent<\/a>\uff0c\u5b83\u53ef\u4ee5\u5728\u4efb\u610f NuGet \u4f9d\u8d56\u9879\u4e0a\u542f\u7528\u65ad\u70b9\u548c\u6240\u6709\u5176\u4ed6\u6e90\u8c03\u8bd5\u4f53\u9a8c\u3002<\/p>\n<p>\u6e90\u94fe\u63a5\u7684\u4ea4\u4ed8\u5b9e\u73b0\u5305\u62ec git\u3001GitHub\u3001GitLab\u3001Azure \u5b58\u50a8\u5e93\u548c BitBucket \u7684\u63d0\u4f9b\u7a0b\u5e8f\uff0c\u4f46 NuGet \u4e0a\u8fd8\u6709\u66f4\u591a\u7684\u63d0\u4f9b\u7a0b\u5e8f\u53ef\u7528\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u5728<a href=\"https:\/\/learn.microsoft.com\/dotnet\/standard\/library-guidance\/sourcelink\">\u5b66\u4e60\u6587\u6863\u4e2d<\/a>\u627e\u5230\u6709\u5173\u6e90\u94fe\u63a5\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u5e76\u9605\u8bfb<a href=\"https:\/\/github.com\/dotnet\/sourcelink\/blob\/35c1276c489edc04b1dac541ca0483814cdd759d\/docs\/README.md#basic-settings\">\u5b58\u50a8\u5e93\u6587\u6863<\/a>\u4e2d\u6709\u5173\u53ef\u7528\u8bbe\u7f6e\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<h3><strong>SDK<\/strong><strong>\uff1a\u65b0\u7684<\/strong><strong> .NET <\/strong><strong>\u5e93\u5206\u6790\u5668<\/strong><\/h3>\n<p><a href=\"https:\/\/learn.microsoft.com\/dotnet\/fundamentals\/code-analysis\/overview\">\u5206\u6790\u5668<\/a>\u7c7b\u4f3c\u4e8e\u5185\u7f6e\u4e8e SDK \u548c\u4ea4\u4e92\u5f0f\u5f00\u53d1\u73af\u5883 \uff08IDE\uff09 \u4e2d\u7684\u7f16\u7801\u4f19\u4f34\uff0c\u53ef\u5728\u60a8\u7f16\u5199\u4ee3\u7801\u65f6\u8bc6\u522b\u95ee\u9898\u5e76\u63d0\u51fa\u66f4\u6b63\u5efa\u8bae\u3002\u4ece .NET 8 Preview 1 \u5f00\u59cb\uff0c\u6211\u4eec\u7684\u56e2\u961f\u6dfb\u52a0\u4e86\u591a\u4e2a\u5206\u6790\u5668\u548c\u4ee3\u7801\u4fee\u590d\u5668\uff0c\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u9a8c\u8bc1\u6b63\u786e\u548c\uff08\u6216\uff09 .NET \u5e93 API\u66f4\u9ad8\u6548\u4f7f\u7528\u3002\u5f88\u9ad8\u5174\u544a\u8bc9\u5927\u5bb6\uff0c\u5927\u591a\u6570\u8fd9\u4e9b\u5206\u6790\u5668\u90fd\u662f\u7531\u6211\u4eec\u7684\u793e\u533a\u6210\u5458\u5b9e\u73b0\u7684\u3002\u6211\u4eec\u8877\u5fc3\u611f\u8c22\u6240\u6709\u8d21\u732e\u8005\u7684\u8f9b\u52e4\u5de5\u4f5c\u548c\u5949\u732e\u7cbe\u795e\uff01<\/p>\n<table style=\"width: 127.785%;\" width=\"661\">\n<thead>\n<tr>\n<td style=\"width: 41.9697%;\" width=\"123\"><strong>\u5206\u6790\u5668\u63d0\u6848\u548c\u8d21\u732e\u8005<\/strong><\/td>\n<td style=\"width: 35.1515%;\" width=\"379\"><strong>\u63cf\u8ff0<\/strong><\/td>\n<td style=\"width: 2.87879%;\" width=\"53\"><strong>\u7c7b\u522b<\/strong><\/td>\n<td style=\"width: 9.84848%;\" width=\"50\"><strong>\u4e25\u91cd\u6027<\/strong><\/td>\n<td style=\"width: 9.84848%;\" width=\"57\"><strong>\u5e2e\u52a9\u94fe\u63a5<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"width: 41.9697%;\" width=\"123\"><a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/33771\">\u5c06\u5e38\u91cf\u4f20\u9012\u7ed9\u6807\u8bb0\u4e3a [ConstantExpected] \u7684\u53c2\u6570\u00a0<\/a><\/p>\n<p>by @wzchua<\/td>\n<td style=\"width: 35.1515%;\" width=\"379\">\u5f53 <span style=\"color: #ff0000;\">ConstantExpected<\/span> \u5c5e\u6027\u672a\u6b63\u786e\u5e94\u7528\u4e8e\u53c2\u6570\u65f6\uff0cCA1856 \u4f1a\u89e6\u53d1\u3002 \u5f53\u53c2\u6570\u7528 <span style=\"color: #ff0000;\">ConstantExpected<\/span> \u5c5e\u6027\u6ce8\u91ca\uff0c\u4f46\u63d0\u4f9b\u7684\u53c2\u6570\u4e0d\u662f\u5e38\u91cf\u65f6\uff0cCA1857 \u4f1a\u89e6\u53d1\u3002 \u5e94\u4f7f\u7528\u5e38\u91cf\u4ee5\u83b7\u5f97\u6700\u4f73\u6027\u80fd\u3002<\/td>\n<td style=\"width: 2.87879%;\" width=\"53\">\u6027\u80fd<\/td>\n<td style=\"width: 9.84848%;\" width=\"50\">CA1856: Error CA1857: Warning<\/td>\n<td style=\"width: 9.84848%;\" width=\"57\">CA1856, CA1857<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 41.9697%;\" width=\"123\"><a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/78608\">\u4f7f\u7528 StartsWith \u800c\u4e0d\u662f IndexOf ==0\u00a0<\/a><\/p>\n<p>by @Youssef1313<\/td>\n<td style=\"width: 35.1515%;\" width=\"379\">\u8c03\u7528 String.<span style=\"color: #ff0000;\">StartsWith<\/span> \u6bd4\u8c03\u7528 <span style=\"color: #ff0000;\">String.IndexOf<\/span> \u5e76\u5c06\u7ed3\u679c\u4e0e\u96f6\u8fdb\u884c\u6bd4\u8f83\u4ee5\u786e\u5b9a\u5b57\u7b26\u4e32\u662f\u5426\u4ee5\u7ed9\u5b9a\u524d\u7f00\u5f00\u5934\u66f4\u9ad8\u6548\u3001\u66f4\u6e05\u6670\u3002<\/td>\n<td style=\"width: 2.87879%;\" width=\"53\">\u6027\u80fd<\/td>\n<td style=\"width: 9.84848%;\" width=\"50\">Info<\/td>\n<td style=\"width: 9.84848%;\" width=\"57\"><a href=\"https:\/\/learn.microsoft.com\/dotnet\/fundamentals\/code-analysis\/quality-rules\/ca1858\">CA1858<\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 41.9697%;\" width=\"123\"><a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/51193\">\u5efa\u8bae\u4f7f\u7528\u5177\u4f53\u7c7b\u578b\u4ee5\u6700\u5927\u9650\u5ea6\u5730\u53d1\u6325\u53bb\u865a\u62df\u5316\u6f5c\u529b<\/a><\/p>\n<p>by @geeknoid<\/td>\n<td style=\"width: 35.1515%;\" width=\"379\">\u8be5\u89c4\u5219\u5efa\u8bae\u5c3d\u53ef\u80fd\u5c06\u7279\u5b9a\u5c40\u90e8\u53d8\u91cf\u3001\u5b57\u6bb5\u3001\u5c5e\u6027\u3001\u65b9\u6cd5\u53c2\u6570\u548c\u65b9\u6cd5\u8fd4\u56de\u7c7b\u578b\u7684\u7c7b\u578b\u4ece\u63a5\u53e3\u6216\u62bd\u8c61\u7c7b\u578b\u5347\u7ea7\u4e3a\u5177\u4f53\u7c7b\u578b\u3002 \u4f7f\u7528\u5177\u4f53\u7c7b\u578b\u53ef\u4ee5\u901a\u8fc7\u6700\u5c0f\u5316\u865a\u62df\u6216\u63a5\u53e3\u8c03\u5ea6\u5f00\u9500\u5e76\u542f\u7528\u5185\u8054\u6765\u751f\u6210\u66f4\u9ad8\u8d28\u91cf\u7684\u4ee3\u7801\u3002<\/td>\n<td style=\"width: 2.87879%;\" width=\"53\">\u6027\u80fd<\/td>\n<td style=\"width: 9.84848%;\" width=\"50\">Info<\/td>\n<td style=\"width: 9.84848%;\" width=\"57\"><a href=\"https:\/\/learn.microsoft.com\/dotnet\/fundamentals\/code-analysis\/quality-rules\/ca1859\">CA1859<\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 41.9697%;\" width=\"123\"><a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/75933\">\u4f18\u5148\u9009\u62e9 <\/a><\/p>\n<p><a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/75933\">.Length\/Count\/IsEmpty <\/a><\/p>\n<p><a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/75933\">\u800c\u4e0d\u662f Any()\u00a0<\/a><\/p>\n<p>by @CollinAlpert<\/td>\n<td style=\"width: 35.1515%;\" width=\"379\">\u4f7f\u7528 Length\u3001Count \u6216 IsEmpty \u6bd4\u8c03\u7528<span style=\"color: #ff0000;\"> Enumerable.Any<\/span> \u6269\u5c55\u65b9\u6cd5\u6765\u786e\u5b9a\u96c6\u5408\u7c7b\u578b\u662f\u5426\u6709\u5143\u7d20\u66f4\u9ad8\u6548\u3001\u66f4\u6e05\u6670<\/td>\n<td style=\"width: 2.87879%;\" width=\"53\">\u6027\u80fd<\/td>\n<td style=\"width: 9.84848%;\" width=\"50\">Info<\/td>\n<td style=\"width: 9.84848%;\" width=\"57\"><a href=\"https:\/\/learn.microsoft.com\/dotnet\/fundamentals\/code-analysis\/quality-rules\/ca1860\">CA1860<\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 41.9697%;\" width=\"123\"><a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/33794\">\u5c06\u5e38\u91cf\u6570\u7ec4\u63d0\u53d6\u5230\u9759\u6001\u53ea\u8bfb\u5b57\u6bb5<\/a><\/p>\n<p>@steveberdy<\/td>\n<td style=\"width: 35.1515%;\" width=\"379\">\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7684\u5e38\u91cf\u6570\u7ec4\u5728\u91cd\u590d\u8c03\u7528\u65f6\u4e0d\u4f1a\u91cd\u7528\uff0c\u8fd9\u610f\u5473\u7740\u6bcf\u6b21\u90fd\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u6570\u7ec4\u3002 \u5982\u679c\u4f20\u9012\u7684\u6570\u7ec4\u672a\u5728\u8c03\u7528\u7684\u65b9\u6cd5\u4e2d\u53d1\u751f\u53d8\u5316\uff0c\u8bf7\u8003\u8651\u5c06\u5176\u63d0\u53d6\u5230\u9759\u6001\u53ea\u8bfb\u5b57\u6bb5\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002<\/td>\n<td style=\"width: 2.87879%;\" width=\"53\">\u6027\u80fd<\/td>\n<td style=\"width: 9.84848%;\" width=\"50\">Info<\/td>\n<td style=\"width: 9.84848%;\" width=\"57\"><a href=\"https:\/\/learn.microsoft.com\/dotnet\/fundamentals\/code-analysis\/quality-rules\/ca1861\">CA1861<\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 41.9697%;\" width=\"123\"><a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/33770\">\u4e0d\u8981\u5c06 OfType() \u4e0e\u4e0d\u53ef\u80fd\u7684\u7c7b\u578b\u4e00\u8d77\u4f7f\u7528<\/a><\/p>\n<p>by @fowl2<\/td>\n<td style=\"width: 35.1515%;\" width=\"379\"><span style=\"color: #ff0000;\">Enumerable.Cast&lt;T&gt;<\/span> \u548c <span style=\"color: #ff0000;\">Enumerable.OfType&lt;T&gt;<\/span> \u9700\u8981\u517c\u5bb9\u7684\u7c7b\u578b\u624d\u80fd\u6309\u9884\u671f\u8fd0\u884c\u3002 \u5bf9\u4e8e\u4e0d\u517c\u5bb9\u7c7b\u578b\u7684\u5143\u7d20\uff0c<span style=\"color: #ff0000;\">Enumerable.Cast&lt;T&gt;<\/span> \u5c06\u5728\u8fd0\u884c\u65f6\u629b\u51fa<\/p>\n<p><span style=\"color: #ff0000;\">InvalidCastException<\/span>\u3002 <span style=\"color: #ff0000;\">Enumerable.OfType&lt;T&gt;<\/span> \u6c38\u8fdc\u4e0d\u4f1a\u6210\u529f\u5904\u7406\u4e0d\u517c\u5bb9\u7c7b\u578b\u7684\u5143\u7d20\uff0c\u4ece\u800c\u5bfc\u81f4\u7a7a\u5e8f\u5217\u3002 \u6cdb\u578b\u7c7b\u578b\u4e0d\u652f\u6301\u6269\u5c55\u548c\u7528\u6237\u5b9a\u4e49\u7684\u8f6c\u6362\u3002<\/td>\n<td style=\"width: 2.87879%;\" width=\"53\">\u53ef\u9760\u6027<\/td>\n<td style=\"width: 9.84848%;\" width=\"50\">Warning<\/td>\n<td style=\"width: 9.84848%;\" width=\"57\">CA2021<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 41.9697%;\" width=\"123\"><a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/68326\">\u5c06\u53c2\u6570 null \u68c0\u67e5\u8f6c\u6362\u4e3a <\/a><\/p>\n<p><a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/68326\">ArgumentNullException.ThrowIfNull<\/a>\u00a0by @stephentoub<\/td>\n<td style=\"width: 35.1515%;\" width=\"379\">\u629b\u51fa\u52a9\u624b\u6bd4\u6784\u9020\u65b0\u5f02\u5e38\u5b9e\u4f8b\u7684 if \u5757\u66f4\u7b80\u5355\u3001\u66f4\u9ad8\u6548\u3002 \u5728\u6b64\u5206\u6790\u5668\u4e2d\u6dfb\u52a0\u4e86\u56db\u4e2a\u5206\u6790\u5668\uff1a<span style=\"color: #ff0000;\">ArgumentNullException<\/span>\u3001<span style=\"color: #ff0000;\">ArgumentException<\/span>\u3001<span style=\"color: #ff0000;\">ArgumentOutOfRangeException<\/span> \u548c ObjectDisposeException \u629b\u51fa\u5e2e\u52a9\u5668<\/td>\n<td style=\"width: 2.87879%;\" width=\"53\">\u53ef\u7ef4\u62a4\u6027<\/td>\n<td style=\"width: 9.84848%;\" width=\"50\">Info<\/td>\n<td style=\"width: 9.84848%;\" width=\"57\">CA1510, CA1511, CA1512, CA1513<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>\u6211\u4eec\u8ba1\u5212\u7ee7\u7eed\u5411 .NET 8 \u6dfb\u52a0\u66f4\u591a\u5206\u6790\u5668\uff0c\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u7f16\u5199\u66f4\u597d\u7684\u4ee3\u7801\uff0c\u5e76\u671f\u5f85\u793e\u533a\u505a\u51fa\u66f4\u591a\u7684\u8d21\u732e\u3002\u5bf9\u4e8e\u793e\u533a\u6765\u8bf4\uff0c\u8fd9\u662f\u5411 .NET 8 SDK \u6dfb\u52a0\u4e00\u4e2a\u5b8c\u6574\u65b0\u529f\u80fd\u7684\u7edd\u4f73\u673a\u4f1a\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6709\u5174\u8da3\u505a\u51fa\u8d21\u732e\uff0c\u8bf7\u67e5\u770b\u6211\u4eec\u5df2\u51c6\u5907\u597d\u5f00\u53d1\u5e76\u6807\u8bb0\u4e3a\u53ef\u83b7\u53d6\u7684<a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/78442\">\u5206\u6790\u5668\u5217\u8868<\/a>\u3002<\/p>\n<h3><strong>SDK<\/strong><strong>\uff1a<\/strong><strong>Linux <\/strong><strong>\u81ea\u5305\u542b<\/strong><\/h3>\n<p>Linux \u53d1\u884c\u7248\u6784\u5efa\uff08\u6e90\u4ee3\u7801\u6784\u5efa\uff09SDK \u73b0\u5728\u53ef\u4ee5\u6784\u5efa\u5229\u7528\u6e90\u4ee3\u7801\u6784\u5efa\u8fd0\u884c\u65f6\u5305\u7684\u81ea\u5305\u542b\u5e94\u7528\u7a0b\u5e8f\u3002\u7279\u5b9a\u4e8e\u53d1\u884c\u7248\u7684\u8fd0\u884c\u65f6\u5305\u5c06\u4e0e\u6e90\u6784\u5efa SDK \u6346\u7ed1\u5728\u4e00\u8d77\u3002\u5728\u81ea\u5305\u542b\u90e8\u7f72\u671f\u95f4\uff0c\u5c06\u5f15\u7528\u6b64\u6346\u7ed1\u8fd0\u884c\u65f6\u5305\uff0c\u4ece\u800c\u4e3a\u7528\u6237\u542f\u7528\u8be5\u529f\u80fd\u3002\u8bf7\u6ce8\u610f\uff0cMS \u6784\u5efa\u7684 SDK \u6ca1\u6709\u53d8\u5316\u3002<\/p>\n<p>\u611f\u8c22\u6211\u4eec\u7684Red Hat\u5408\u4f5c\u4f19\u4f34\uff0c\u5c24\u5176\u662f<a href=\"https:\/\/github.com\/tmds\">@tmds<\/a>\uff0c\u611f\u8c22\u4ed6\u4eec\u4e3a\u6b64\u529f\u80fd\u505a\u51fa\u7684\u5b9d\u8d35\u8d21\u732e\u3002<\/p>\n<h3><strong>SDK<\/strong><strong>\uff1a\u81ea\u5305\u542b\u4e0d\u518d\u662f\u9ed8\u8ba4<\/strong><\/h3>\n<p>\u4ece <span style=\"color: #ff0000;\">.NET 6<\/span> \u5f00\u59cb\uff0c\u5728\u53d1\u5e03\u671f\u95f4\u6307\u5b9a\u8fd0\u884c\u65f6\u4f1a\u5bfc\u81f4\u4ee5\u4e0b\u8b66\u544a\uff1a<\/p>\n<pre class=\" prettyprinted\" tabindex=\"0\"><code class=\"language-text prettyprinted\"><span class=\"pun\">&gt;<\/span><span class=\"pln\"> warning NETSDK1179<\/span><span class=\"pun\">:<\/span> <span class=\"typ\">One<\/span> <span class=\"kwd\">of<\/span> <span class=\"str\">'--self-contained'<\/span> <span class=\"kwd\">or<\/span> <span class=\"str\">'--no-self-contained'<\/span><span class=\"pln\"> options are required <\/span><span class=\"kwd\">when<\/span> <span class=\"str\">'--runtime'<\/span> <span class=\"kwd\">is<\/span><span class=\"pln\"> used<\/span><span class=\"pun\">.<\/span><\/code><\/pre>\n<p><a href=\"https:\/\/github.com\/dotnet\/sdk\/pull\/30038\">\u5bf9\u4e8e .NET 8\uff0c\u8fd9\u79cd\u60c5\u51b5\u6700\u7ec8\u5c06\u6d88\u5931<\/a>\u3002 \u672a\u6765\uff0c\u5bf9\u4e8e\u9762\u5411<span style=\"color: #ff0000;\"> .NET 8.0<\/span> \u548c\u66f4\u9ad8\u7248\u672c\u76ee\u6807\u6846\u67b6\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c-<span style=\"color: #ff0000;\">r\/&#8211;runtime<\/span> \u5c06\u4e0d\u518d\u610f\u5473\u7740 <span style=\"color: #ff0000;\">&#8211;self-contained<\/span>\u3002 \u5982\u679c\u60a8\u60f3\u8981\u8fd9\u79cd\u884c\u4e3a\uff0c\u60a8\u9700\u8981<\/p>\n<ul>\n<li>\u663e\u5f0f\u6dfb\u52a0 CLI \u9009\u9879\uff0c\u6216<\/li>\n<li>\u5c06<span style=\"color: #ff0000;\">&lt;SelfContained&gt;true&lt;\/SelfContained&gt;<\/span>\u5c5e\u6027\u6dfb\u52a0\u5230\u9879\u76ee\u6587\u4ef6<\/li>\n<\/ul>\n<p>\u9762\u5411<span style=\"color: #ff0000;\"> .NET 7.0<\/span> \u6216\u66f4\u4f4e\u7248\u672c\u7684\u5e94\u7528\u7a0b\u5e8f\u4e0d\u53d7\u5f71\u54cd\u3002 \u60a8\u53ef\u4ee5\u5728\u6211\u4eec\u53d1\u5e03\u7684<a href=\"https:\/\/learn.microsoft.com\/dotnet\/core\/compatibility\/sdk\/8.0\/runtimespecific-app-default\">\u91cd\u5927\u53d8\u66f4\u901a\u77e5<\/a>\u4e2d\u4e86\u89e3\u6709\u5173\u6b64\u53d8\u66f4\u7684\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n<p>\u6211\u4eec\u505a\u51fa\u8fd9\u4e00\u66f4\u6539\u662f\u56e0\u4e3a\u6211\u4eec\u76f8\u4fe1\u9488\u5bf9\u7279\u5b9a\u5e73\u53f0\u662f\u5c06\u8fd0\u884c\u65f6\u4e0e\u8be5\u5e73\u53f0\u6346\u7ed1\u5728\u4e00\u8d77\u7684\u72ec\u7acb\u51b3\u5b9a\u3002 \u8ba9\u66f4\u591a\u5e94\u7528\u7a0b\u5e8f\u9ed8\u8ba4\u4e3a\u4f9d\u8d56\u4e8e\u6846\u67b6\u7684\u90e8\u7f72\u610f\u5473\u7740\u53ef\u4ee5\u5b89\u5168\u5730\u66f4\u65b0\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u7684\u8fd0\u884c\u65f6\uff0c\u800c\u65e0\u9700\u91cd\u5efa\u6216\u91cd\u65b0\u90e8\u7f72\u3002 \u4e0e\u81ea\u5305\u542b\u90e8\u7f72\u76f8\u6bd4\uff0c\u5b83\u8fd8\u51cf\u5c11\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u5927\u5c0f\u3002<\/p>\n<h3><strong>Alpine ASP.NET Docker <\/strong><strong>\u5408\u6210\u56fe\u50cf<\/strong><\/h3>\n<p>\u6211\u4eec\u73b0\u5728\u63d0\u4f9b\u4e00\u4e2a\u65b0\u7684 ASP.NET Docker \u56fe\u50cf\uff0c\u8be5\u56fe\u50cf\u4f7f\u7528\u66f4\u65b0\u7684<a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/conversation-about-ready-to-run\/\">\u5f00\u7bb1\u5373\u7528 (R2R)<\/a> \u6784\u5efa\u53d8\u4f53\uff08\u79f0\u4e3a\u201ccomposite\u201d\uff09\u3002 \u5408\u6210 R2R \u56fe\u50cf\u662f\u901a\u8fc7\u5c06\u591a\u4e2a MSIL \u7a0b\u5e8f\u96c6\u7f16\u8bd1\u4e3a\u5355\u4e2a R2R \u8f93\u51fa\u4e8c\u8fdb\u5236\u6587\u4ef6\u6765\u6784\u5efa\u7684\u3002 \u5408\u6210\u56fe\u50cf\u6709\u51e0\u4e2a\u4f18\u70b9\uff1a\u51cf\u5c11 JIT \u65f6\u95f4\u3001\u964d\u4f4e\u542f\u52a8\u6027\u80fd\u4ee5\u53ca\u51cf\u5c0f R2R \u56fe\u50cf\u5927\u5c0f\u3002<\/p>\n<p>\u5408\u6210\u56fe\u50cf\u5177\u6709\u66f4\u7d27\u5bc6\u7684\u7248\u672c\u8026\u5408\u3002\u8fd9\u610f\u5473\u7740\u6700\u7ec8\u7684\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u4e0d\u80fd\u4f7f\u7528\u4e0d\u540c\u7248\u672c\u7684\u6846\u67b6\uff08\u4f8b\u5982 <a href=\"https:\/\/www.nuget.org\/packages\/System.Reflection.Metadata\">System.Reflection.Metadata<\/a> \u548c\uff08\u6216\uff09 ASP.NET \u4e8c\u8fdb\u5236\u6587\u4ef6\u88ab\u5d4c\u5165\u5230\u5408\u6210\u6587\u4ef6\u4e2d\uff09\u3002\u8fd9\u4e2a\u9650\u5236\u5c31\u662f\u6211\u4eec\u5236\u4f5c\u65b0\u56fe\u50cf\u98ce\u683c\u7684\u539f\u56e0\u3002 \u60a8\u7684\u5e94\u7528\u7a0b\u5e8f\u53ef\u80fd\u65e0\u6cd5\u6309\u7167\u5f53\u524d\u7684\u6784\u5efa\u65b9\u5f0f\u4f7f\u7528composite\u3002<\/p>\n<p>\u8fd9\u4e2a\u65b0\u7684\u5bb9\u5668\u56fe\u50cf\u662f\u65b0\u529f\u80fd\u3002 \u6211\u4eec\u51b3\u5b9a\u4ece\u57fa\u4e8e Alpine \u7684\u65b0\u53d8\u4f53\u5f00\u59cb\u3002 \u901a\u5e38\u9009\u62e9 Alpine \u56fe\u50cf\u662f\u56e0\u4e3a\u5b83\u4eec\u7684\u5c3a\u5bf8\u8f83\u5c0f\uff0c\u8fd9\u4e0e\u8be5\u9879\u76ee\u7684\u76ee\u6807\u662f\u4e00\u81f4\u7684\u3002 \u5c06\u6765\u6211\u4eec\u53ef\u80fd\u4f1a\u6269\u5c55\u5bf9\u5176\u4ed6\u56fe\u50cf\u7c7b\u578b\u7684\u652f\u6301\uff0c\u4f8b\u5982 distroless \u56fe\u50cf\u3002<\/p>\n<h3><strong>\u6211\u4eec\u5728\u54ea\u91cc\u53ef\u4ee5\u83b7\u5f97\u5408\u6210\u56fe\u50cf\uff1f<\/strong><\/h3>\n<p>\u622a\u81f3\u76ee\u524d\uff0c\u5408\u6210\u56fe\u50cf\u53ef\u5728 <span style=\"color: #ff0000;\">mcr.microsoft.com\/dotnet\/nightly\/aspnet<\/span> \u5b58\u50a8\u5e93\u4e2d\u9884\u89c8\u3002 \u8fd9\u4e9b\u6807\u7b7e\u5728<a href=\"https:\/\/hub.docker.com\/_\/microsoft-dotnet-nightly-aspnet\">\u5b98\u65b9\u591c\u95f4 Dotnet Docker \u9875\u9762<\/a>\u4e2d\u4ee5 <span style=\"color: #ff0000;\">-composite<\/span> \u540e\u7f00\u5217\u51fa\u3002<\/p>\n<h3><strong>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u8fd0\u884c\u65f6\u4e3b\u673a\u5728\u6ca1\u6709<\/strong><strong>RID<\/strong><strong>\u56fe\u7684\u60c5\u51b5\u4e0b\u786e\u5b9a<\/strong><strong>RID<\/strong><strong>\u7279\u5b9a\u8d44\u4ea7<\/strong><\/h3>\n<p>\u5f53\u8fd0\u884c\u5e26\u6709 <a href=\"https:\/\/learn.microsoft.com\/dotnet\/core\/rid-catalog\">Runtime (RID)<\/a> \u7279\u5b9a\u8d44\u4ea7\u7684\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u4e3b\u673a\u4f1a\u51b3\u5b9a\u54ea\u4e9b\u8d44\u4ea7\u4e0e\u5176\u8fd0\u884c\u7684\u5e73\u53f0\u76f8\u5173\u3002 \u8fd9\u9002\u7528\u4e8e\u5e94\u7528\u7a0b\u5e8f\u672c\u8eab\u548c <a href=\"https:\/\/learn.microsoft.com\/dotnet\/api\/system.runtime.loader.assemblydependencyresolver\">AssemblyDependencyResolver<\/a> \u4f7f\u7528\u7684\u89e3\u6790\u903b\u8f91\u3002 \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5728 .NET 8 \u4e2d\uff0c\u6b64\u51b3\u5b9a\u5c06\u4e0d\u518d\u4f7f\u7528 RID \u56fe\uff0c\u800c\u662f\u4f9d\u8d56\u4e8e\u57fa\u4e8e\u8fd0\u884c\u65f6\u672c\u8eab\u6784\u5efa\u65b9\u5f0f\u7684\u5df2\u77e5 RID \u5217\u8868\u3002<\/p>\n<p>\u4e8b\u5b9e\u8bc1\u660e\uff0cRID \u56fe\u7684\u7ef4\u62a4\u6210\u672c\u9ad8\u6602\u3001\u96be\u4ee5\u7406\u89e3\u5e76\u4e14\u901a\u5e38\u5f88\u8106\u5f31\u3002 \u6b64\u66f4\u6539\u662f<a href=\"https:\/\/github.com\/dotnet\/designs\/pull\/260\">\u7b80\u5316 RID \u6a21\u578b<\/a>\u7684\u957f\u671f\u76ee\u6807\u7684\u4e00\u90e8\u5206\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u5728<a href=\"https:\/\/learn.microsoft.com\/dotnet\/core\/compatibility\/deployment\/8.0\/rid-asset-list\">\u91cd\u5927\u53d8\u66f4\u901a\u77e5<\/a>\u4e2d\u9605\u8bfb\u6709\u5173\u6b64\u53d8\u66f4\u7684\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n<h3><strong>Codegen<\/strong><\/h3>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/conversation-about-pgo\/\">\u52a8\u6001\u914d\u7f6e\u6587\u4ef6\u5f15\u5bfc\u4f18\u5316 (PGO)<\/a> \u73b0\u5728\u9ed8\u8ba4\u542f\u7528\uff0c\u8fd9\u610f\u5473\u7740\u4e0d\u518d\u9700\u8981\u7279\u6b8a\u7684\u914d\u7f6e\u8bbe\u7f6e\u3002 \u6211\u4eec\u9884\u8ba1\u5404\u7c7b\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u5c06\u63d0\u9ad8 5% \u5230 500%\uff08\u5408\u7406\u9884\u671f\u4e3a 15%\uff09\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u5e94\u7528\u7a0b\u5e8f\u74f6\u9888\u7684\u6027\u8d28\u3002 \u5728\u6211\u4eec\u7ea6 4600 \u6b21\u6d4b\u8bd5\u7684\u672c\u5730\u57fa\u51c6\u6d4b\u8bd5\u5957\u4ef6\u4e2d\uff0c23% \u7684\u6d4b\u8bd5\u63d0\u9ad8\u4e86 20% \u6216\u66f4\u591a\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/petabridge.com\/blog\/dotnet7-pgo-performance-improvements\/\" target=\"_blank\" rel=\"noopener\">Akka.Net<\/a><\/li>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/azure-active-directorys-gateway-is-on-net-6-0\/\">Azure Active Directory Gateway<\/a><\/li>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/microsoft-graph-dotnet-6-journey\/\">Microsoft Graph<\/a><\/li>\n<\/ul>\n<p>\u5728\u8fc7\u53bb\u7684\u7248\u672c\u4e2d\uff0cPGO \u7684\u5f97\u5230\u4e86\u8f83\u597d\u7684\u7528\u6237\u53cd\u9988\u3002 \u4f46\u662f\uff0c\u5982\u679c\u60a8\u662f\u52a8\u6001 PGO \u7684\u65b0\u624b\uff0c\u6211\u4eec\u4e5f\u671f\u5f85\u542c\u5230\u60a8\u7684\u4f53\u9a8c\u53cd\u9988\uff08\u65e0\u8bba\u597d\u574f\uff09\u3002<\/p>\n<p>\u5982\u6709\u5fc5\u8981\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u9009\u62e9\u9000\u51fa\u52a8\u6001 PGO\uff1a<\/p>\n<p><span style=\"color: #ff0000;\">&lt;TieredPGO&gt;false&lt;\/TieredPGO&gt;<\/span><\/p>\n<p>\u5728<span style=\"color: #ff0000;\"> .csproj<\/span> \u4e2d\u6216\u901a\u8fc7\u8fd0\u884c\u65f6\u914d\u7f6e\u6216\u73af\u5883\u4e2d\u7684\u7c7b\u4f3c\u8bbe\u7f6e\u3002<\/p>\n<h3><strong>\u4f18\u5316<\/strong><strong> GC <\/strong><strong>\u7c7b\u578b\u7684<\/strong><strong> ThreadStatic <\/strong><strong>\u5b57\u6bb5\u8bbf\u95ee<\/strong><\/h3>\n<p>\u6807\u8bb0\u4e3a <a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/82973\">ThreadStaticLocal \u7684\u5b57\u6bb5\u8bbf\u95ee\u73b0\u5728\u9488\u5bf9\u539f\u59cb\u7c7b\u578b\u8fdb\u884c\u4e86\u4f18\u5316<\/a>\u3002 \u6211\u4eec\u8fd8\u901a\u8fc7 <a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/85619\">PR#85619<\/a> \u4f18\u5316\u4e86\u5f15\u7528\u7c7b\u578b\u5b57\u6bb5\u8bbf\u95ee\u3002 \u8fd9\u4e9b\u66f4\u6539\u5728\u8bb8\u591a\u57fa\u51c6\u6d4b\u8bd5\u4e2d\u5e26\u6765\u4e86\u4e00\u4e9b\u975e\u5e38\u597d\u7684\u6539\u8fdb\uff1a\uff08<a href=\"https:\/\/github.com\/dotnet\/perf-autofiling-issues\/issues\/17925\">windows\/arm64 \u4e0a\u6709 133 \u4e2a<\/a>\uff0c<a href=\"https:\/\/github.com\/dotnet\/perf-autofiling-issues\/issues\/17801\">windows\/x64 \u4e0a\u6709 23 \u4e2a<\/a>\uff0c<a href=\"https:\/\/github.com\/dotnet\/perf-autofiling-issues\/issues\/17908\">16<\/a>\u3001<a href=\"https:\/\/github.com\/dotnet\/perf-autofiling-issues\/issues\/17798\">13<\/a>\u3001<a href=\"https:\/\/github.com\/dotnet\/perf-autofiling-issues\/issues\/17855\">11<\/a> \u4e2a\u6539\u8fdb\uff09\u3002<\/p>\n<h3><strong>Arm64<\/strong><\/h3>\n<p>Preview 5 \u8fd8\u5e26\u6765\u4e86\u4e00\u4e9b\u7ec6\u5fae\u4f18\u5316\uff1a<\/p>\n<ul>\n<li>\u5728 <a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/85032\">PR#85032<\/a> \u4e2d\uff0c\u6211\u4eec\u542f\u7528\u4e86\u7aa5\u89c6\u5b54\u4f18\u5316\uff0c\u4ee5\u7528 <span style=\"color: #ff0000;\">stp<\/span> \u66ff\u6362 <span style=\"color: #ff0000;\">str<\/span> \u7ec4\u3002<\/li>\n<li>\u5728 <a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/85657\">PR#85657<\/a> \u4e2d\uff0c\u6211\u4eec\u542f\u7528\u4e86\u7aa5\u89c6\u5b54\u4f18\u5316\uff0c\u5728 prolog \u4e2d\u7528 <span style=\"color: #ff0000;\">ldp\/stp<\/span> \u66ff\u6362<span style=\"color: #ff0000;\"> ldr\/str<\/span> \u7ec4\u3002<\/li>\n<\/ul>\n<h3><strong>\u5e38\u89c4\u4f18\u5316<\/strong><\/h3>\n<p>\u6211\u4eec\u7684\u56e2\u961f\u53d1\u5e03\u4e86\u8bb8\u591a\u5e38\u89c4\u4f18\u5316\uff0c\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/85780\">PR#85780<\/a> \u4e2d\u5bf9 <span style=\"color: #ff0000;\">movzx<\/span>\u3001<span style=\"color: #ff0000;\">movsx<\/span> \u548c <span style=\"color: #ff0000;\">movsxd<\/span> \u7b49 x64 \u6307\u4ee4\u8fdb\u884c\u4e86\u4f18\u5316\uff0c\u901a\u8fc7\u6d88\u9664\u66f4\u591a\u5197\u4f59 <span style=\"color: #ff0000;\">mov<\/span> \u6307\u4ee4\uff0c\u7565\u5fae\u6539\u8fdb\u4e86\u4ee3\u7801\u751f\u6210\u3002<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/86318\">PR#86318<\/a> \u6539\u8fdb\u4e86\u67d0\u4e9b\u51bb\u7ed3\u5bf9\u8c61\uff08\u975e GC \u5bf9\u8c61\uff09\u7684\u5e38\u91cf\u6298\u53e0\u3002 \u5b83\u5c06\u751f\u6210\u7684\u4ee3\u7801\u7684\u5927\u5c0f\u51cf\u5c11\u4e86\u8fd1 10 \u500d\uff08\u4f8b\u5982\uff0c\u4ece 424 \u5b57\u8282\u51cf\u5c11\u5230 41 \u5b57\u8282\uff09\u3002<\/li>\n<\/ul>\n<h3><strong>AVX-512<\/strong><\/h3>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/85389\">PR#85389<\/a> \u542f\u7528\u4e86 AVX-512 \u8fdb\u884c\u533a\u5757\u5c55\u5f00\uff0c\u8fd9\u589e\u52a0\u4e86\u4ee5\u524d\u7528\u4e8e\u56de\u9000\u5230 memcpy\/memset \u7684\u8303\u56f4\uff0c\u5e76\u5c06\u6267\u884c\u65f6\u95f4\u7f29\u77ed\u4e86\u4e00\u534a\u3002<\/li>\n<li>AVX512F\u3001AVX512BW \u548c AVX512CD \u542f\u7528\u4e86\u5404\u79cd\u6574\u6570\u5185\u5728\u51fd\u6570\uff0c<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/85833\">PR#85833<\/a>\u3002<\/li>\n<\/ul>\n<h3><strong>\u793e\u533a<\/strong><strong> PR<\/strong><strong>\uff08\u975e\u5e38\u611f\u8c22<\/strong><strong> JIT <\/strong><strong>\u793e\u533a\u8d21\u732e\u8005\uff01\uff09<\/strong><\/h3>\n<ul>\n<li>@SingleAccretion \u5728Preview 5 \u4e2d\u8d21\u732e\u4e86 <a href=\"https:\/\/github.com\/dotnet\/runtime\/pulls?q=is%3Apr+is%3Amerged+label%3Aarea-CodeGen-coreclr+closed%3A2023-04-26..2023-05-23++-milestone%3A7.0.x+author%3Asingleaccretion\">18 \u4e2a PR<\/a>\u3002\u5176\u4e2d\u5927\u90e8\u5206\u5de5\u4f5c\u90fd\u96c6\u4e2d\u5728\u5185\u90e8 JIT \u6e05\u7406\u4e0a\uff0c\u6700\u7ec8\u76ee\u6807\u662f<strong>\u5927\u5927\u7b80\u5316\u5185\u90e8\u8868\u793a<\/strong><strong> (IR)<\/strong>\uff0c\u7279\u522b\u662f\u5728<strong>\u5206\u914d<\/strong><strong>\/<\/strong><strong>\u5b58\u50a8<\/strong>\u65b9\u9762\u3002<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/85180\">PR#85180<\/a> \u6807\u5fd7\u7740\u8fd9\u9879\u5de5\u4f5c\u7684\u5f00\u59cb\uff0c\u5728\u672a\u6765\u7684\u9884\u89c8\u4e2d\uff0c\u5b83\u5c06\u5bfc\u81f4JIT\u5728\u7f16\u8bd1\u7528\u6237\u51fd\u6570\u65f6\u901f\u5ea6\u63d0\u9ad8\u51e0\u4e2a\u767e\u5206\u70b9\u3002<\/li>\n<li>@yesmey \u542f\u7528\u4e86 const \u5b57\u7b26\u4e32\u7684Append \u529f\u80fd\uff0c\u4ee5\u89e3\u9501\u66f4\u591a AVX-512 \u7684\u4f7f\u7528\u3002 \u5b83\u5c06 System.Tests.Perf_Enum \u57fa\u51c6\u6d4b\u8bd5\u7684\u6267\u884c\u65f6\u95f4\u63d0\u9ad8\u4e86 8%\uff0c\u5c06 StringBuilder \u7684\u6267\u884c\u65f6\u95f4\u63d0\u9ad8\u4e86 16%\uff0c<a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/85894\">PR#85894<\/a>\u3002<\/li>\n<li>@MichalPetryka \u63d0\u4ea4\u4e86 <a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/85398\">PR#85398<\/a>\uff0c\u6539\u8fdb\u4e86 JIT \u65e9\u671f\u63a8\u7406\u5355\u5b9a\u4e49\u53d8\u91cf\u7684\u80fd\u529b\uff0c\u5e76\u63d0\u4ea4\u4e86 <a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/85349\">PR#85349<\/a>\uff0c\u6539\u8fdb\u4e86 JIT \u7684\u4ee3\u7801\u751f\u6210\uff0c\u4ee5\u8c03\u7528\u4e0d\u5e26\u53c2\u6570\u7684\u51fd\u6570\u6307\u9488\u3002<\/li>\n<\/ul>\n<h3><strong>\u4f7f\u7528<\/strong><strong> C# <\/strong><strong>\u5f00\u53d1\u5de5\u5177\u5305\u6269\u5c55\u63d0\u9ad8<\/strong><strong> VS Code <\/strong><strong>\u7684\u5de5\u4f5c\u6548\u7387\uff01<\/strong><\/h3>\n<p>VS Code \u4e2d\u7684 C# \u5f00\u53d1\u5de5\u5177\u5305\u6269\u5c55\u73b0\u5728\u5df2\u7ecf\u53ef\u4ee5 \u5728 VS Code \u4e2d\u8fdb\u884c\u516c\u5f00\u9884\u89c8\uff01\u6211\u4eec\u975e\u5e38\u611f\u8c22\u60a8\u5728 .NET 8 \u4e2d\u4f7f\u7528C# \u5f00\u53d1\u5de5\u5177\u5305 \uff0c\u5e76\u7ed9\u4e88\u53cd\u9988\u3002<\/p>\n<p>\u5b83\u65e8\u5728\u63d0\u9ad8\u60a8\u5728 VS Code \u4e2d\u7684 C# \u5de5\u4f5c\u6548\u7387\uff0cC# \u5f00\u53d1\u5de5\u5177\u5305\u53ef\u5e2e\u52a9\u4f60\u4f7f\u7528\u89e3\u51b3\u65b9\u6848\u8d44\u6e90\u7ba1\u7406\u5668\u7ba1\u7406\u4ee3\u7801\uff0c\u4f7f\u7528 AI \u8f85\u52a9\u5efa\u8bae\u548c\u5b8c\u6210\uff0c\u5b9e\u73b0\u66f4\u5feb\u5730\u7f16\u5199\u4ee3\u7801\uff0c\u5e76\u63d0\u4f9b\u5728\u6d4b\u8bd5\u8d44\u6e90\u7ba1\u7406\u5668\u4e2d\u8fd0\u884c\u548c\u8c03\u8bd5\u6d4b\u8bd5\u7684\u65b0\u529f\u80fd\u3002\u4f7f\u7528 Roslyn \u652f\u6301\u7684\u8bed\u8a00\u670d\u52a1\uff0cC# \u5f00\u53d1\u5de5\u5177\u5305\u8fd8\u6781\u5927\u5730\u63d0\u9ad8\u4e86 C# \u8bed\u8a00\u529f\u80fd\uff08\u5982\u4ee3\u7801\u5bfc\u822a\u3001\u91cd\u6784\u3001\u667a\u80fd\u611f\u77e5\u7b49\uff09\u7684\u6027\u80fd\u3002<\/p>\n<p>\u5982\u679c\u60a8\u60f3\u8981\u5f00\u59cb\u4f7f\u7528 C# \u5f00\u53d1\u5de5\u5177\u5305\uff0c\u8bf7\u67e5\u770b\u6211\u4eec<a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/announcing-csharp-dev-kit-for-visual-studio-code\/\">\u6700\u8fd1\u7684\u516c\u544a\u535a\u5ba2\u6587\u7ae0<\/a>\u3002<\/p>\n<h3><strong>\u793e\u533a\u7126\u70b9<\/strong><\/h3>\n<p><a href=\"https:\/\/github.com\/doctorkrolic\">DoctorKrolic<\/a><\/p>\n<p><em>\u6211\u662f\u4e00\u540d .NET \u540e\u7aef\u5f00\u53d1\u4eba\u5458\uff0c\u5bf9\u4ee3\u7801\u5206\u6790\u5e94\u7528\u7a0b\u5e8f\u5145\u6ee1\u70ed\u60c5\u3002\u559c\u6b22\u6784\u5efa\u5f3a\u5927\u7684\u540e\u7aef\u670d\u52a1\u548c C# \u751f\u4ea7\u529b\u5de5\u5177\uff01\u5728\u7a7a\u95f2\u65f6\u95f4\uff0c\u6211\u559c\u6b22\u4e3a\u5f00\u6e90\u9879\u76ee\u505a\u51fa\u8d21\u732e\uff0c\u5e76\u8ddf\u4e0a\u6700\u65b0\u7684\u884c\u4e1a\u8d8b\u52bf\uff0c\u4ee5\u4e0d\u65ad\u63d0\u9ad8\u6211\u7684\u6280\u80fd\u548c\u77e5\u8bc6\u3002<\/em><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2023\/06\/community-spotlight.png\" alt=\"DoctorKrolic\" \/><\/p>\n<p>\u60a8\u53ef\u4ee5\u5728<a href=\"https:\/\/aka.ms\/net8contributor\"> https:\/\/aka.ms\/net8contributor<\/a>\u63d0\u540d\u60a8\u5df2\u77e5\u6b63\u5728\u4e3a.NET\u505a\u51fa\u8d21\u732e\u7684\u4eba\uff0c\u6211\u4eec\u5c06\u4f1a\u5728\u4ee5\u540e\u7684\u5e16\u5b50\u4e2d\u4ecb\u7ecd\u4ed6\u3002<\/p>\n<h3><strong>\u603b\u7ed3<\/strong><\/h3>\n<p>.NET 8 Preview 5 \u5305\u542b\u4e86\u4ee4\u4eba\u5174\u594b\u7684\u65b0\u529f\u80fd\u548c\u6539\u8fdb\uff0c\u8fd9\u4e9b\u662f\u901a\u8fc7 Microsoft \u591a\u5143\u5316\u5de5\u7a0b\u5e08\u56e2\u961f\u548c\u5145\u6ee1\u70ed\u60c5\u7684\u5f00\u6e90\u793e\u533a\u7684\u8f9b\u52e4\u5de5\u4f5c\u548c\u5949\u732e\u800c\u5b9e\u73b0\u7684\u3002\u6211\u4eec\u8981<a href=\"https:\/\/dotnet.microsoft.com\/thanks\">\u611f\u8c22\u8fc4\u4eca\u4e3a\u6b62\u4e3a .NET 8 \u505a\u51fa\u8d21\u732e\u7684\u6240\u6709\u4eba<\/a>\uff0c\u65e0\u8bba\u662f\u901a\u8fc7\u4ee3\u7801\u8d21\u732e\u3001\u9519\u8bef\u62a5\u544a\u8fd8\u662f\u63d0\u4f9b\u53cd\u9988\u3002<\/p>\n<p>\u60a8\u7684\u8d21\u732e\u5bf9\u4e8e\u5236\u4f5c .NET 8 \u9884\u89c8\u7248\u53d1\u6325\u4e86\u91cd\u8981\u7684\u4f5c\u7528\uff0c\u6211\u4eec\u671f\u5f85\u7740\u7ee7\u7eed\u5171\u540c\u52aa\u529b\uff0c\u4e3a .NET \u548c\u6574\u4e2a\u6280\u672f\u793e\u533a\u6253\u9020\u66f4\u5149\u660e\u7684\u672a\u6765\u3002<\/p>\n<p>\u597d\u5947\u63a5\u4e0b\u6765\u4f1a\u53d1\u751f\u4ec0\u4e48\uff1f <a href=\"https:\/\/dotnet.microsoft.com\/next\">\u5feb\u6765\u4eb2\u81ea\u770b\u770b .NET \u7684\u4e0b\u4e00\u6b65\u53d1\u5c55\u5427\uff01<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005\uff1aJiachen Jiang\u00a0 \u539f\u6587\uff1aAnnouncing .NET 8 Preview 5 &#8211; .NET Blog (microsoft.com) \u6211\u4eec\u5f88\u9ad8\u5174\u4e0e\u60a8\u5206\u4eab .NET 8 Preview 5 \u4e2d\u7684\u6240\u6709\u65b0\u529f\u80fd\u548c\u6539\u8fdb\uff01 \u6b64\u7248\u672c\u662f Preview 4 \u7248\u672c\u7684\u540e\u7eed\u7248\u672c\u3002 \u5728\u6bcf\u6708\u53d1\u5e03\u7684\u7248\u672c\u4e2d\uff0c\u60a8\u5c06\u770b\u5230\u66f4\u591a\u65b0\u529f\u80fd\u3002.NET 6 \u548c 7 \u7528\u6237\u53ef\u4ee5\u5bc6\u5207\u5173\u6ce8\u6b64\u7248\u672c\uff0c\u800c\u6211\u4eec\u4e5f\u6b63\u5728\u52aa\u529b\u4f7f\u5347\u7ea7\u66f4\u65b9\u4fbf\u3002 \u60a8\u53ef\u4ee5\u4e0b\u8f7d\u9002\u7528\u4e8e Windows\u3001macOS \u548c Linux \u7684 .NET 8 Preview 5\u3002 \u5b89\u88c5\u7a0b\u5e8f\u548c\u4e8c\u8fdb\u5236\u6587\u4ef6 \u5bb9\u5668\u56fe\u50cf \u53d1\u884c\u8bf4\u660e \u5df2\u77e5\u7684\u95ee\u9898 GitHub \u95ee\u9898\u8ddf\u8e2a\u5668 \u60a8\u53ef\u4ee5\u67e5\u770bPreview 5 \u7248\u672c\u4e2d ASP.NET Core \u4e2d\u7684\u65b0\u589e\u529f\u80fd\uff0c\u5e76\u4e86\u89e3 .NET 8 \u4e2d\u7684\u65b0\u589e\u529f\u80fd\u548c\u5373\u5c06\u63a8\u51fa\u7684\u65b0\u529f\u80fd\u3002\u5728\u6574\u4e2a\u7248\u672c\u4e2d\uff0c\u8fd9\u4e9b\u65b0\u529f\u80fd\u5c06\u4f1a\u4e0d\u65ad\u66f4\u65b0\u3002 Microsoft Build 2023 \u53d6\u5f97\u4e86\u5de8\u5927\u7684\u6210\u529f\uff0c\u8fd9\u5f88\u5927\u7a0b\u5ea6\u4e0a\u5f52\u529f\u4e8e\u50cf\u60a8\u8fd9\u6837\u7684 .NET [&hellip;]<\/p>\n","protected":false},"author":97248,"featured_media":428,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[2,16,15],"class_list":["post-427","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet-ch","tag-net","tag-net-8","tag-featured-preview"],"acf":[],"blog_post_summary":"<p>\u4f5c\u8005\uff1aJiachen Jiang\u00a0 \u539f\u6587\uff1aAnnouncing .NET 8 Preview 5 &#8211; .NET Blog (microsoft.com) \u6211\u4eec\u5f88\u9ad8\u5174\u4e0e\u60a8\u5206\u4eab .NET 8 Preview 5 \u4e2d\u7684\u6240\u6709\u65b0\u529f\u80fd\u548c\u6539\u8fdb\uff01 \u6b64\u7248\u672c\u662f Preview 4 \u7248\u672c\u7684\u540e\u7eed\u7248\u672c\u3002 \u5728\u6bcf\u6708\u53d1\u5e03\u7684\u7248\u672c\u4e2d\uff0c\u60a8\u5c06\u770b\u5230\u66f4\u591a\u65b0\u529f\u80fd\u3002.NET 6 \u548c 7 \u7528\u6237\u53ef\u4ee5\u5bc6\u5207\u5173\u6ce8\u6b64\u7248\u672c\uff0c\u800c\u6211\u4eec\u4e5f\u6b63\u5728\u52aa\u529b\u4f7f\u5347\u7ea7\u66f4\u65b9\u4fbf\u3002 \u60a8\u53ef\u4ee5\u4e0b\u8f7d\u9002\u7528\u4e8e Windows\u3001macOS \u548c Linux \u7684 .NET 8 Preview 5\u3002 \u5b89\u88c5\u7a0b\u5e8f\u548c\u4e8c\u8fdb\u5236\u6587\u4ef6 \u5bb9\u5668\u56fe\u50cf \u53d1\u884c\u8bf4\u660e \u5df2\u77e5\u7684\u95ee\u9898 GitHub \u95ee\u9898\u8ddf\u8e2a\u5668 \u60a8\u53ef\u4ee5\u67e5\u770bPreview 5 \u7248\u672c\u4e2d ASP.NET Core \u4e2d\u7684\u65b0\u589e\u529f\u80fd\uff0c\u5e76\u4e86\u89e3 .NET 8 \u4e2d\u7684\u65b0\u589e\u529f\u80fd\u548c\u5373\u5c06\u63a8\u51fa\u7684\u65b0\u529f\u80fd\u3002\u5728\u6574\u4e2a\u7248\u672c\u4e2d\uff0c\u8fd9\u4e9b\u65b0\u529f\u80fd\u5c06\u4f1a\u4e0d\u65ad\u66f4\u65b0\u3002 Microsoft Build 2023 \u53d6\u5f97\u4e86\u5de8\u5927\u7684\u6210\u529f\uff0c\u8fd9\u5f88\u5927\u7a0b\u5ea6\u4e0a\u5f52\u529f\u4e8e\u50cf\u60a8\u8fd9\u6837\u7684 .NET [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/posts\/427","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=427"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/posts\/427\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/media\/428"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/media?parent=427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/categories?post=427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet-ch\/wp-json\/wp\/v2\/tags?post=427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}