首先安裝vs2015版編譯器,建議安裝默認路徑
安裝包百度雲鏈接:鏈接:https://pan.baidu.com/s/1QGmXJ3BjmX5I3AYtHxZogg
提取碼:qzu0
安裝完成后可在開始中查找,如圖所示:
打開后點擊:文件---新建---項目
單擊瀏覽可以選擇路徑,箭頭處可修改文件名稱
確定后如圖所示:
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace demo1 8 { 9 class Program 10 { 11 static void Main(string[] args) 12 { 13 } 14 } 15 }
添加兩行代碼即可運行顯示“hello,world”
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace demo 8 { 9 class Program 10 { 11 static void Main(string[] args) 12 { 13 Console.WriteLine("hello,world"); 14 Console.ReadLine(); 15 } 16 } 17 }