title: "netcore命令行匯總"
layout: post
date: 2017-09-18 13:22:00"
categories: netcore
使用命令行進行新建項目,編譯,newget包的還原等
vscode 命令:
顯示所有命令 ctrl+shift+p
轉到文件 ctrl+p
在文件中查找 ctrl+shift+f
開始調試 f5
切換終端 ctrl+`
第三方新建工具(.net core 1.0階段):
dotnet aspnet-codegenerator
npm install -g yo
npm install -g generator-aspnet
查看netcore 是否安裝成功
dotnet --version
會列出已經存在的項目列表
dotnet new
新建一個web應用程序
dotnet new -t web
還原應用程序,重新加載類庫
dotnet restore
dotnet restore -f E:\dotnet\applib\bin\Debug\
編輯應用程序
dotnet build
運行應用程序
dotnet run
dotnet xxx.dll
發布應用程序
dotnet publish
eg: dotnet publish -r win10-x64
eg: dotnet publish -r ubuntu.14.04-x64
打包應用程序包
dotnet pack
運行一個測試
dotnet test