NetCore指令集和

1.查看当前目录的版本号

C:\Users\Administrator>dotnet --version
1.0.4

2.发布程式,进入到指定目录

dotnet publish


3.运行程式

#方式一
TestDemo.exe Console

#方式二
dotnet TestDemo.dll Console

 4.创建EF迁移

dotnet ef  migrations add DemoDB20170513 --context DemoDBContext -o "D:\Ap\DemoContext\Migrations"

5.cd至指定目录,自动切换盘符

C:\Users\Administrator>cd /d D:\Ap\DemoContext

 

posted on 2017-06-07 10:59  chen110xi  阅读(333)  评论(0编辑  收藏  举报