{"id":46,"date":"2023-02-18T01:15:03","date_gmt":"2023-02-17T17:15:03","guid":{"rendered":"https:\/\/km94.com\/?p=46"},"modified":"2023-02-18T01:15:03","modified_gmt":"2023-02-17T17:15:03","slug":"fedora-linux%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85-net-7%ef%bc%9ffedora-linux%e5%ae%89%e8%a3%85-net-7%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/dy208.cn\/index.php\/2023\/02\/18\/fedora-linux%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85-net-7%ef%bc%9ffedora-linux%e5%ae%89%e8%a3%85-net-7%e6%95%99%e7%a8%8b\/","title":{"rendered":"Fedora Linux\u5982\u4f55\u5b89\u88c5.NET 7\uff1fFedora Linux\u5b89\u88c5.NET 7\u6559\u7a0b"},"content":{"rendered":"<p>.NET \u662f\u4e00\u4e2a\u514d\u8d39\u7684\u8de8\u5e73\u53f0\u5f00\u6e90\u5f00\u53d1\u4eba\u5458\u5e73\u53f0\uff0c\u7528\u4e8e\u751f\u6210\u8bb8\u591a\u4e0d\u540c\u7c7b\u578b\u7684\u5e94\u7528\uff0c\u4f8b\u5982\u60a8\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u8bed\u8a00\u3001\u7f16\u8f91\u5668\u548c\u5e93\u6765\u6784\u5efaWeb\u3001\u79fb\u52a8\u3001\u684c\u9762\u3001\u6e38\u620f\u548cIoT\u7b49\u3002.NET 7\u73b0\u5728\u5df2\u7ecf\u53ef\u4ee5\u5728Fedora Linux\u4e0a\u4f7f\u7528\uff0c\u672c\u6587\u5c06\u4ecb\u7ecd\u4e0b\u5728Fedora Linux\u4e0a\u5b89\u88c5.NET 7\u7684\u4e3b\u8981\u6b65\u9aa4\u3002<\/p>\n<p>\u767b\u5f55\u5230Fedora Linux\u670d\u52a1\u5668\uff08\u5982\u57fa\u4e8eFedora Linux\u7684RAKsmart\u7f8e\u56fd\u670d\u52a1\u5668\uff09\uff0c\u7136\u540e\u8fd0\u884c\u4e0b\u9762\u547d\u4ee4\u5b89\u88c5NET 7\u8f6f\u4ef6\u5f00\u53d1\u5de5\u5177\u5305(SDK)\u3002<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">sudo dnf install -y dotnet-sdk-7.0<\/span><\/code><\/pre>\n<p>\u8fd9\u5c06\u5b89\u88c5\u6240\u6709\u7684\u4f9d\u8d56\u9879\uff0c\u5305\u62ec\u4e00\u4e2a. NET\u8fd0\u884c\u5e93\u3002\u5982\u679c\u4e0d\u60f3\u5b89\u88c5\u6574\u4e2aSKD\uff0c\u800c\u53ea\u60f3\u8fd0\u884c.NET7\u5e94\u7528\u7a0b\u5e8f\uff0c\u60a8\u53ef\u4ee5\u5b89\u88c5ASP.NET\u6838\u5fc3\u8fd0\u884c\u65f6\u6216.NET\u8fd0\u884c\u65f6\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4e4b\u4e00\u8fdb\u884c\u5b89\u88c5\u5373\u53ef\uff1a<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">sudo dnf install -y aspnetcore-runtime-7.0<\/span><\/code><\/pre>\n<p>\u6216\u8005<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">sudo dnf install -y dotnet-runtime-7.0<\/span><\/code><\/pre>\n<p>\u5b89\u88c5.NET 7\u540e\uff0c\u60a8\u53ef\u4ee5\u7528\u5b83\u6765\u521b\u5efa\u548c\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u53c2\u8003\u4ee5\u4e0b\u6b65\u9aa4\u521b\u5efa\u5e76\u8fd0\u884c\u7ecf\u5178\u7684\u201cHello World\u201d\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u4f7f\u7528C#\u8bed\u8a00\uff0c\u521b\u5efa\u4e00\u4e2a\u540d\u4e3aHelloWorldConsole\u7684\u65b0\u76ee\u5f55\u3002<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">dotnet new console -o HelloWorldConsole<\/span><\/code><\/pre>\n<p>\u7136\u540e\u5207\u6362\u5230\u9879\u76ee\u76ee\u5f55\u3002<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">cd HelloWorldConsole<\/span><\/code><\/pre>\n<p>\u6700\u540e\uff0c\u6784\u5efa\u5e76\u8fd0\u884c\u60a8\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">dotnet run<\/span><\/code><\/pre>\n<p>\u5982\u65e0\u610f\u5916\uff0c\u60a8\u5e94\u8be5\u4f1a\u5728\u7a0b\u5e8f\u4e2d\u770b\u5230\u4e00\u4e2a\u201cHello World\u201d\u8f93\u51fa\u3002<\/p>\n<div>\n<div><\/div>\n<div><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>.NET \u662f\u4e00\u4e2a\u514d\u8d39\u7684\u8de8\u5e73\u53f0\u5f00\u6e90\u5f00\u53d1\u4eba\u5458\u5e73\u53f0\uff0c\u7528\u4e8e\u751f\u6210\u8bb8\u591a\u4e0d\u540c\u7c7b\u578b\u7684\u5e94\u7528\uff0c\u4f8b\u5982\u60a8\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u8bed\u8a00\u3001\u7f16\u8f91\u5668\u548c\u5e93\u6765&hellip;<\/p>\n","protected":false},"author":1,"featured_media":47,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[9,7],"class_list":["post-46","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jc","category-server","tag-net","tag-linux","entry"],"_links":{"self":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":0,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}