{"id":5876,"date":"2024-10-31T10:38:24","date_gmt":"2024-10-31T02:38:24","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=5876"},"modified":"2024-10-31T10:48:19","modified_gmt":"2024-10-31T02:48:19","slug":"%e4%bd%bf%e7%94%a8vscode%e5%bc%80%e5%8f%91c%e6%8e%a7%e5%88%b6%e5%8f%b0%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=5876","title":{"rendered":"\u4f7f\u7528VSCode\u5f00\u53d1C#\u63a7\u5236\u53f0\u5e94\u7528\u7a0b\u5e8f"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u73af\u5883<\/h2>\n\n\n\n<p>VSCode<\/p>\n\n\n\n<p>.NET 8.0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u5728Console\u4e2d\u8f93\u5165\ndotnet --version\n\n\u5982\u679c\u663e\u793a8.0.XXX \u8868\u660e.NET\u73af\u5883\u5b89\u88c5\u6b63\u786e,\u5426\u5219\u9700\u8981\u5b89\u88c5.NET:\nhttps:&#47;&#47;dotnet.microsoft.com\/en-us\/download\/dotnet\/8.0<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u63d2\u4ef6<\/h2>\n\n\n\n<p>VSCode\u4e2d\u5b89\u88c5\u63d2\u4ef6<\/p>\n\n\n\n<p>C#<\/p>\n\n\n\n<p>C# Dev Kit<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6b65\u9aa41<\/h2>\n\n\n\n<p>\u5728\u4e00\u4e2a\u7a7a\u7684\u76ee\u5f55\u4e2d\uff0c\u4f8b\u5982<\/p>\n\n\n\n<p>d:\\testproj<\/p>\n\n\n\n<p>\u4f7f\u7528VSCode\u6253\u5f00\u6b64\u76ee\u5f55\uff08\u5728\u76ee\u5f55\u4e0a\u53f3\u51fb\uff0cOpen with Code)\uff0c\u5e76\u4fe1\u4efb\u6b64\u76ee\u5f55\uff08Yes, I tust the authors)<\/p>\n\n\n\n<p>1\u3001\u6309Ctrl+Shift+P, \u9009\u62e9 <\/p>\n\n\n\n<p>.NET: New Project &#8230; \/ Console App \/ \u8f93\u5165testproj \/ \u4e00\u8def\u5b8c\u6210<\/p>\n\n\n\n<p>2\u3001\u6309Ctrl+Shift+P, \u9009\u62e9<\/p>\n\n\n\n<p>.NET: Generate Assets for Build and Debug<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6b65\u9aa42\uff1a<\/h2>\n\n\n\n<p>\u5728Program.cs\u4e2d\uff0c\u6309F9\u6253\u65ad\u70b9\uff0c\u6309F5\u542f\u52a8\u8c03\u8bd5<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73af\u5883 VSCode .NET 8.0 \u63d2\u4ef6 VSCode\u4e2d\u5b89\u88c5\u63d2\u4ef6 C# C# Dev Kit \u6b65\u9aa41 \u5728\u4e00\u4e2a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/5876"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5876"}],"version-history":[{"count":3,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/5876\/revisions"}],"predecessor-version":[{"id":5880,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/5876\/revisions\/5880"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}