visual studio code 命令集合



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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM