如何不使用Visual Studio編輯C#
按滑鼠右鍵,建立一個「文字文件」
內容輸入
using System;
namespace Test
{
class Test
{
public static void Main(string[] args)
{
Console.WriteLine("asd");
Console.ReadLine();
}
}
}
接續:
- 將這個文字文件副檔名以".cs "儲存。
-
按右鍵點選「開啟檔案」。
-
到c/Windows/MicrosoftNET/Framework/v4.30319之後,開啟"csc"這個應用程式。
-
"csc"會編譯c#代碼,編譯完成後會在同一個資料夾產生一個同名的應用程式,點選兩下開啟即可執行剛剛寫的C#代碼了。
csc就是「C Sharp compiler(編譯器)」的縮寫,
好奇如何使用「文字文件」編輯html嗎?參考這篇文章:
留言
發佈留言