{"id":390,"date":"2021-10-13T07:53:50","date_gmt":"2021-10-12T22:53:50","guid":{"rendered":"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=390"},"modified":"2021-10-13T07:55:17","modified_gmt":"2021-10-12T22:55:17","slug":"net6-rc2%e3%81%a7%e3%81%ae%e6%94%b9%e6%82%aa","status":"publish","type":"post","link":"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=390","title":{"rendered":".NET6 RC2\u3067\u306e\u6539\u60aa?"},"content":{"rendered":"\n<p>.NET6 RC2\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u306e\u3067\u3001.NET Blog\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u70b9\u306a\u3069\u3092\u78ba\u8a8d\u3057\u3066\u307f\u305f\u3002<\/p>\n\n\n\n<p>\u500b\u4eba\u7684\u306b\u6700\u60aa\u3060\u3068\u601d\u3063\u305f\u306e\u306f\u3001Console\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u3001Main\u304c\u7121\u304f\u306a\u3063\u3066\u3044\u305f\u308a\u3001Web\u7cfb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067Main\u3084\u3001Startup.cs\u304c\u7121\u304f\u306a\u3063\u3066\u3044\u308b\u4e8b\u3002<\/p>\n\n\n\n<p>\u3084\u3063\u3071\u308a\u3001C#\u306a\u3093\u3060\u304b\u3089\u3001Main\u306f\u5fc5\u8981\u3060\u3068\u601d\u3046\u3057\u3001Web\u7cfb\u3082Program.cs\u306b\u5168\u3066\u66f8\u304f\u306e\u306f\u30ab\u30c3\u30b3\u60aa\u3044\u3068\u601d\u3046\u3002(\u307e\u3041\u3001\u500b\u4eba\u7684\u306a\u610f\u898b\u3060\u3051\u3069\u30fb\u30fb\u30fb\u3001\u521d\u5fc3\u8005\u306f\u3053\u308c\u3067\u899a\u3048\u3066\u3057\u307e\u3046\u304b\u3089\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30a8\u30f3\u30c8\u30ea\u30dd\u30a4\u30f3\u30c8\u306f\u3084\u306f\u308a\u3001\u5fc5\u8981\u3060\u3068\u601d\u3046\u306e\u3060\u3051\u308c\u3069\u30fb\u30fb\u30fb)<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-csharp\" data-file=\"Program.cs-Console\" data-lang=\"C#\"><code>\/\/ See https:\/\/aka.ms\/new-console-template for more information\nConsole.WriteLine(&quot;Hello, World!&quot;);<\/code><\/pre><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-csharp\" data-file=\"Program.cs-webapp\" data-lang=\"C#\"><code>var builder = WebApplication.CreateBuilder(args);\n\n\/\/ Add services to the container.\nbuilder.Services.AddRazorPages();\n\nvar app = builder.Build();\n\n\/\/ Configure the HTTP request pipeline.\nif (!app.Environment.IsDevelopment())\n{\n    app.UseExceptionHandler(&quot;\/Error&quot;);\n    \/\/ The default HSTS value is 30 days. You may want to change this for production scenarios, see https:\/\/aka.ms\/aspnetcore-hsts.\n    app.UseHsts();\n}\n\napp.UseHttpsRedirection();\napp.UseStaticFiles();\n\napp.UseRouting();\n\napp.UseAuthorization();\n\napp.MapRazorPages();\n\napp.Run();<\/code><\/pre><\/div>\n\n\n\n<p>\u3084\u3063\u3071\u308a\u3001\u30ab\u30c3\u30b3\u60aa\u3044\u3088\u306d\u3047\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>.NET6 RC2\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u306e\u3067\u3001.NET Blog\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u70b9\u306a\u3069\u3092 &hellip; <a href=\"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=390\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,9,4,17],"tags":[],"class_list":["post-390","post","type-post","status-publish","format-standard","hentry","category-net","category-c","category-4","category-17"],"_links":{"self":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=390"}],"version-history":[{"count":3,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/390\/revisions"}],"predecessor-version":[{"id":393,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/390\/revisions\/393"}],"wp:attachment":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}