close
參考:https://channel9.msdn.com/Events/TechDays/TechDays...
TechDays 2015 之 保哥-ASP.NET 5 開發攻略
1.安裝node.js
2.npm install -g yo (安裝套件管理工具 yeoman之全域套件)
3.npm install -g generator-aspnet (安裝aspnet 站台產生套件,類似express)
4.yo aspnet (選擇WebApplication,並輸入應用程式目錄名稱aspnet5, yo會產生範本程式碼)
2.建置
2.1 cd aspnet5
2.2 dnu restore (還元套件,須先安裝aspnet 5 , 參考: http://docs.asp.net/en/latest/getting-started/inst...)
2.3 dnu build
3.開發:
3.1 code . (對目前資料夾, 使用Visual Studio Code 進行開發)
3.2 或使用VS2015 開起專案檔aspnet5/project.json 進行開發建置
3.3 dnx web (啟動站台http://localhost:5000)
全站熱搜