{"id":7780,"date":"2023-01-30T21:38:24","date_gmt":"2023-01-30T12:38:24","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=7780"},"modified":"2023-01-30T21:38:26","modified_gmt":"2023-01-30T12:38:26","slug":"post-7780","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2023\/01\/30\/post-7780\/","title":{"rendered":"Visual Studio 2022\u3067\u30c7\u30d0\u30c3\u30af\u5b9f\u884c\u3057\u305f\u3089\u201dCreateHostBuilder(args).Build().Run();\u201d\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002"},"content":{"rendered":"\n<p>Visual Studio 2022\u3067\u30c7\u30d0\u30c3\u30af\u5b9f\u884c\u3057\u305f\u3089\u201dCreateHostBuilder(args).Build().Run();\u201d\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3002\u3082\u3068\u3082\u3068\u3001\u52d5\u4f5c\u3057\u3066\u3044\u305f\u74b0\u5883\u306a\u306e\u3060\u304c\u3001\u4e45\u3057\u3076\u308a\u306b\u8d77\u52d5\u3055\u305b\u305f\u3068\u3053\u308d\u3001\u30c7\u30d0\u30c3\u30af\u5b9f\u884c\u3067\u8d77\u52d5\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3044\u305f\u3002\u74b0\u5883\u306f\u3001Visual Studio 2022\u3001.NET6\u3002<\/p>\n\n\n\n<p>\u25a0\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u500b\u6240\uff1aProgram.CS<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CreateHostBuilder(args).Build().Run();<\/code><\/pre>\n\n\n\n<p>\u25a0\u8868\u793a\u3055\u308c\u305f\u30a8\u30e9\u30fc\u3084\u30ed\u30b0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>'xxxxxxxxx.exe' (CoreCLR: clrhost): 'C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\6.0.13\\System.Security.Cryptography.Csp.dll' \u304c\u8aad\u307f\u8fbc\u307e\u308c\u307e\u3057\u305f\u3002\u30b7\u30f3\u30dc\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u307e\u3057\u305f\u3002\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u6700\u9069\u5316\u3055\u308c\u3066\u3044\u3066\u3001\u30c7\u30d0\u30c3\u30b0 \u30aa\u30d7\u30b7\u30e7\u30f3\u306e &#91;\u30de\u30a4 \u30b3\u30fc\u30c9\u306e\u307f] \u8a2d\u5b9a\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\n\u4f8b\u5916\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3057\u305f: 'System.InvalidOperationException' (System.Private.CoreLib.dll \u306e\u4e2d)\n\u578b 'System.InvalidOperationException' \u306e\u30cf\u30f3\u30c9\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u4f8b\u5916\u304c System.Private.CoreLib.dll \u3067\u767a\u751f\u3057\u307e\u3057\u305f\nUnable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found or is out of date.\nTo generate a developer certificate run 'dotnet dev-certs https'. To trust the certificate (Windows and macOS only) run 'dotnet dev-certs https --trust'.\nFor more information on configuring HTTPS see https:\/\/go.microsoft.com\/fwlink\/?linkid=848054.<\/code><\/pre>\n\n\n\n<p>\u3044\u308d\u3044\u308d\u3068\u8a66\u3057\u305f\u7d50\u679c\u30fb\u30fb\u30fb<\/p>\n\n\n\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\uff08\uff12\u3064\uff09\u3092\u3001Visual Studio 2022 \u3068\u306f\u5225\u306bPowershell\u3092\u958b\u3044\u3066\u3001\u5b9f\u884c\u3057\u305f\u3002\u305d\u306e\u3042\u3068\u3001Visual Studio\u3067\u30c7\u30d0\u30c3\u30af\u5b9f\u884c\u3057\u3066\u6b63\u5e38\u306b\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u304c\u8d77\u52d5\u3059\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dotnet dev-certs https --clean\ndotnet dev-certs https --trust<\/code><\/pre>\n\n\n\n<p>&#8220;dotnet dev-certs https &#8211;trust&#8221;\u306e\u307f\u306e\u5b9f\u884c\u3060\u3068\u3001\u5909\u3089\u306a\u304f\u3066\u3001Clean\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u4f7f\u3063\u3066\u3044\u306a\u3044\u8a3c\u660e\u66f8\u3092\u304d\u308c\u3044\u306b\u3059\u308b\u3053\u3068\u3067\u89e3\u6d88\u3057\u305f\u3002\u3053\u3053\u304c\u308f\u304b\u308b\u307e\u3067\u3001\u7d50\u69cb\u6642\u9593\u3092\u4f7f\u3063\u3066\u3057\u307e\u3063\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio 2022\u3067\u30c7\u30d0\u30c3\u30af\u5b9f\u884c\u3057\u305f\u3089\u201dCreateHostBuilder(args).Build().Run();\u201d\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3002\u3082\u3068\u3082\u3068\u3001\u52d5\u4f5c\u3057\u3066\u3044\u305f\u74b0\u5883\u306a\u306e\u3060\u304c\u3001\u4e45\u3057\u3076\u308a\u306b\u8d77\u52d5\u3055\u305b\u305f\u3068\u3053\u308d\u3001\u30c7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[246,247],"class_list":["post-7780","post","type-post","status-publish","format-standard","hentry","category-windows","tag-net6","tag-visualstudio2022"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/7780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=7780"}],"version-history":[{"count":1,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/7780\/revisions"}],"predecessor-version":[{"id":7781,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/7780\/revisions\/7781"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=7780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=7780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=7780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}