{"id":20682,"date":"2024-11-19T17:05:10","date_gmt":"2024-11-19T09:05:10","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20682\/"},"modified":"2024-11-19T17:05:10","modified_gmt":"2024-11-19T09:05:10","slug":"sublime%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8cc","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20682\/","title":{"rendered":"sublime\u600e\u4e48\u8fd0\u884cc#"},"content":{"rendered":"<blockquote><p>\n  \u8981\u5728 sublime \u4e2d\u8fd0\u884c c# \u4ee3\u7801\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u5b89\u88c5 mono\uff08.net \u5b9e\u73b0\uff09\u3002\u5b89\u88c5 c# \u7f16\u8bd1\u5668\uff08csc\uff09\u3002\u4e3a sublime \u5b89\u88c5 c# \u63d2\u4ef6\uff08\u201cc# complete\u201d\uff09\u3002\u521b\u5efa\u5e76\u4fdd\u5b58\u4e00\u4e2a .cs \u6269\u5c55\u540d\u7684 c# \u6587\u4ef6\u3002\u7f16\u5199 c# \u4ee3\u7801\u3002\u4f7f\u7528 csc \u7f16\u8bd1\u5668\u7f16\u8bd1\u4ee3\u7801\u3002\u4f7f\u7528 mono \u8fd0\u884c\u53ef\u6267\u884c\u6587\u4ef6\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/03\/2024040312421719539.jpg\" class=\"aligncenter\" title=\"sublime\u600e\u4e48\u8fd0\u884cc#\u63d2\u56fe\" alt=\"sublime\u600e\u4e48\u8fd0\u884cc#\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 Sublime \u4e2d\u8fd0\u884c C#<\/strong><\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a\u5b89\u88c5 Mono<\/strong><\/p>\n<p>Mono \u662f\u4e00\u4e2a\u5f00\u6e90\u7684 .NET \u5b9e\u73b0\uff0c\u4f7f\u60a8\u53ef\u4ee5\u5728\u975e Windows \u7cfb\u7edf\u4e0a\u8fd0\u884c C# \u4ee3\u7801\u3002\u524d\u5f80 Mono \u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5 Mono\u3002<\/p>\n<p><strong>\u6b65\u9aa4 2\uff1a\u5b89\u88c5 C# \u7f16\u8bd1\u5668<\/strong><\/p>\n<p>C# \u7f16\u8bd1\u5668\u662f\u5c06 C# \u4ee3\u7801\u8f6c\u6362\u4e3a\u673a\u5668\u4ee3\u7801\u6240\u9700\u7684\u5de5\u5177\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 C# \u7f16\u8bd1\u5668\uff1a<\/p>\n<pre>sudo apt-get install mono-csc<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u6b65\u9aa4 3\uff1a\u4e3a Sublime \u5b89\u88c5 C# \u63d2\u4ef6<\/strong><\/p>\n<p>Sublime Text \u6ca1\u6709\u5185\u7f6e\u7684 C# \u652f\u6301\uff0c\u56e0\u6b64\u60a8\u9700\u8981\u5b89\u88c5\u4e00\u4e2a\u63d2\u4ef6\u3002\u524d\u5f80 Package Control \u5e76\u5b89\u88c5\u201cC# Complete\u201d\uff0c\u8be5\u63d2\u4ef6\u5c06\u4e3a C# \u4ee3\u7801\u63d0\u4f9b\u8bed\u6cd5\u9ad8\u4eae\u3001\u81ea\u52a8\u5b8c\u6210\u548c\u4ee3\u7801\u5bfc\u822a\u3002<\/p>\n<p><strong>\u6b65\u9aa4 4\uff1a\u521b\u5efa C# \u6587\u4ef6<\/strong><\/p>\n<p>\u4f7f\u7528 Sublime \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\u5e76\u5c06\u5176\u4fdd\u5b58\u4e3a .cs \u6269\u5c55\u540d\u3002\u4f8b\u5982\uff0cHelloWorld.cs\u3002<\/p>\n<p><strong>\u6b65\u9aa4 5\uff1a\u7f16\u5199 C# \u4ee3\u7801<\/strong><\/p>\n<p>\u5728 .cs \u6587\u4ef6\u4e2d\u7f16\u5199\u60a8\u7684 C# \u4ee3\u7801\u3002\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre>using System;\n\npublic class HelloWorld\n{\n    public static void Main(string[] args)\n    {\n        Console.WriteLine(\"Hello World!\");\n    }\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u6b65\u9aa4 6\uff1a\u7f16\u8bd1\u4ee3\u7801<\/strong><\/p>\n<p>\u6253\u5f00\u7ec8\u7aef\u7a97\u53e3\u5e76\u5bfc\u822a\u5230\u5305\u542b .cs \u6587\u4ef6\u7684\u76ee\u5f55\u3002\u4f7f\u7528 csc \u7f16\u8bd1\u5668\u7f16\u8bd1\u4ee3\u7801\uff1a<\/p>\n<pre>csc HelloWorld.cs<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u6b65\u9aa4 7\uff1a\u8fd0\u884c\u7a0b\u5e8f<\/strong><\/p>\n<p>\u7f16\u8bd1\u6210\u529f\u540e\uff0c\u5c06\u751f\u6210\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\uff08HelloWorld.exe\uff09\u3002\u8fd0\u884c\u7a0b\u5e8f\uff1a<\/p>\n<pre>mono HelloWorld.exe<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8f93\u51fa\u5e94\u4e3a\uff1a<\/p>\n<pre>Hello World!<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8fd0\u884c\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8981\u5728 sublime \u4e2d\u8fd0\u884c c# \u4ee3\u7801\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u5b89\u88c5 mono\uff08.net \u5b9e\u73b0\uff09\u3002\u5b89\u88c5 c# \u7f16\u8bd1\u5668\uff08csc\uff09\u3002\u4e3a sublime \u5b89\u88c5 c# \u63d2\u4ef6\uff08\u201cc# complete\u201d\uff09\u3002\u521b\u5efa\u5e76\u4fdd\u5b58\u4e00\u4e2a .cs \u6269\u5c55\u540d\u7684 c# \u6587\u4ef6\u3002\u7f16\u5199 c# \u4ee3\u7801\u3002\u4f7f\u7528 csc \u7f16\u8bd1\u5668\u7f16\u8bd1\u4ee3\u7801\u3002\u4f7f\u7528 mono \u8fd0\u884c\u53ef\u6267\u884c\u6587\u4ef6\u3002 \u5982\u4f55\u5728 Sublime \u4e2d\u8fd0\u884c C# \u6b65\u9aa4 1\uff1a\u5b89\u88c5 Mono Mono \u662f\u4e00\u4e2a\u5f00\u6e90\u7684 .NET \u5b9e\u73b0\uff0c\u4f7f\u60a8\u53ef\u4ee5\u5728\u975e Windows \u7cfb\u7edf\u4e0a\u8fd0\u884c C# \u4ee3\u7801\u3002\u524d\u5f80 Mono \u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5 Mono\u3002 \u6b65\u9aa4 2\uff1a\u5b89\u88c5 C# \u7f16\u8bd1\u5668 C# \u7f16\u8bd1\u5668\u662f\u5c06 C# \u4ee3\u7801\u8f6c\u6362\u4e3a\u673a\u5668\u4ee3\u7801\u6240\u9700\u7684\u5de5\u5177\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 C# \u7f16\u8bd1\u5668\uff1a sudo apt-get install [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-20682","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=20682"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20682\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}